From: maier Date: Sun, 16 Feb 2014 14:38:28 +0000 (+0000) Subject: CMake: Use CMAKE_DL_LIBS instead of searching by hand X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b270aab97c35888ee00ec796b6dc0af3ccb8f9;p=dealii-svn.git CMake: Use CMAKE_DL_LIBS instead of searching by hand git-svn-id: https://svn.dealii.org/trunk@32493 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/configure/configure_1_threads.cmake b/deal.II/cmake/configure/configure_1_threads.cmake index 1d712c04b7..4a697a8358 100644 --- a/deal.II/cmake/configure/configure_1_threads.cmake +++ b/deal.II/cmake/configure/configure_1_threads.cmake @@ -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()