From: Augustin Degomme Date: Thu, 23 Aug 2018 09:42:01 +0000 (+0200) Subject: this is needed also with clang X-Git-Tag: v3_21~205^2 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5891ceabfaeb28d438a7c042e9c289b7c22c931f this is needed also with clang --- diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index 24b8b0775f..1a92e3557a 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -134,7 +134,7 @@ if(CMAKE_COMPILER_IS_GNUCC AND GCCLIBATOMIC_LIBRARY) set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,--as-needed -latomic -Wl,--no-as-needed") endif() -if(enable_model-checking AND CMAKE_COMPILER_IS_GNUCC AND (NOT LINKER_VERSION VERSION_LESS "2.30")) +if(enable_model-checking AND (NOT LINKER_VERSION VERSION_LESS "2.30")) set(SIMGRID_DEP "${SIMGRID_DEP} -Wl,-znoseparate-code") endif()