X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5891ceabfaeb28d438a7c042e9c289b7c22c931f..3c3c0a7ae294686ea4aef60738fbc2554252996d:/tools/cmake/MakeLib.cmake diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 1a92e3557a..aa7aeac67f 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -1,6 +1,6 @@ ### Make Libs -# On Mac OSX, specify that rpath is useful to look for the dependencies +# On macOS, specify that rpath is useful to look for the dependencies # See https://gitlab.kitware.com/cmake/community/wikis/doc/cmake/RPATH-handling and Java.cmake set(CMAKE_MACOSX_RPATH TRUE) if(APPLE) @@ -77,7 +77,7 @@ if(HAVE_POSIX_GETTIME) SET(SIMGRID_DEP "${SIMGRID_DEP} -lrt") endif() -if("${CMAKE_SYSTEM}" MATCHES "FreeBSD") +if("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD") set(SIMGRID_DEP "${SIMGRID_DEP} -lprocstat") endif() @@ -104,6 +104,9 @@ if(enable_smpi) SET(SIMGRID_DEP "${SIMGRID_DEP} -lflang") if("${CMAKE_SYSTEM}" MATCHES "FreeBSD") set(SIMGRID_DEP "${SIMGRID_DEP} -lexecinfo") + if ("${CMAKE_SYSTEM_VERSION}" MATCHES "12") + set(SIMGRID_DEP "${SIMGRID_DEP} -lpgmath") + endif() endif() endif() endif()