]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
CMake: Use CMAKE_DL_LIBS instead of searching by hand
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 16 Feb 2014 14:38:28 +0000 (14:38 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 16 Feb 2014 14:38:28 +0000 (14:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@32493 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/cmake/configure/configure_1_threads.cmake

index 1d712c04b7618e254b735c69272a8d8f387cae2a..4a697a835885b532403cfeedf078b0fc263db66c 100644 (file)
@@ -208,11 +208,7 @@ MACRO(FEATURE_THREADS_CONFIGURE_BUNDLED)
   #
   # TODO: Also necessary for external lib, use preference toggle
   #
-  FIND_SYSTEM_LIBRARY(dl_LIBRARY NAMES dl)
-  MARK_AS_ADVANCED(dl_LIBRARY)
-  IF(NOT dl_LIBRARY MATCHES "-NOTFOUND")
-    LIST(APPEND THREADS_LIBRARIES ${dl_LIBRARY})
-  ENDIF()
+  LIST(APPEND THREADS_LIBRARIES ${CMAKE_DL_LIBS})
 
   LIST(APPEND THREADS_BUNDLED_INCLUDE_DIRS ${TBB_FOLDER}/include)
 ENDMACRO()

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.