]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Don't forget to guard librt as well
authorMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 13 Jul 2013 11:00:50 +0000 (11:00 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Sat, 13 Jul 2013 11:00:50 +0000 (11:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@29992 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/modules/FindUMFPACK.cmake

index fc512a52f3745898dc50b1a402fcaaafe68e0aee..68f418bf42379b12f77dfca43e1b1e5bf5c0a562 100644 (file)
@@ -146,10 +146,12 @@ IF(UMFPACK_FOUND)
   # lib does not record its dependence on librt.so as evidenced
   # by ldd :-( ):
   #
-  FIND_LIBRARY(rt_lib NAMES rt)
-  MARK_AS_ADVANCED(rt_lib)
-  IF(NOT rt_lib MATCHES "-NOTFOUND")
-    LIST(APPEND UMFPACK_LIBRARIES ${rt_lib})
+  SWITCH_LIBRARY_PREFERENCE()
+  FIND_LIBRARY(rt_LIBRARY NAMES rt)
+  SWITCH_LIBRARY_PREFERENCE()
+  MARK_AS_ADVANCED(rt_LIBRARY)
+  IF(NOT rt_LIBRARY MATCHES "-NOTFOUND")
+    LIST(APPEND UMFPACK_LIBRARIES ${rt_LIBRARY})
   ENDIF()
 
   SET(UMFPACK_INCLUDE_DIRS

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.