X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e529d79c390578099d7b5e3cbb779eb8dc4bed90..f782b90bcef4c93ddbb5d916709ac40aeb76210a:/CMakeLists.txt 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)