X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/29a3b2869c0075fc75e8ccc66fc1d9c4c8bf6a85..325f3e852ae3ca8c9e4c2a6d3ba26317c33b0ace:/CMakeLists.txt?ds=sidebyside diff --git a/CMakeLists.txt b/CMakeLists.txt index 5abb679ec4..77973ccfab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -139,9 +139,9 @@ execute_process(COMMAND ${CMAKE_LINKER} -version OUTPUT_VARIABLE LINKER_VERSION string(REGEX MATCH "[0-9].[0-9]*" LINKER_VERSION "${LINKER_VERSION}") ### Set the library providing dlopen -if("${CMAKE_SYSTEM}" MATCHES "Linux") +if("${CMAKE_SYSTEM_NAME}" MATCHES "kFreeBSD|Linux") find_library(DL_LIBRARY dl) -endif("${CMAKE_SYSTEM}" MATCHES "Linux") +endif() ### Find programs and paths FIND_PROGRAM(GCOV_PATH gcov)