Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
VERSION_GREATER_EQUAL is not available with older cmake.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Jul 2018 13:22:59 +0000 (15:22 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Mon, 16 Jul 2018 13:22:59 +0000 (15:22 +0200)
tools/cmake/MakeLib.cmake

index 9fa3a60..14bb922 100644 (file)
@@ -120,7 +120,7 @@ if(CMAKE_COMPILER_IS_GNUCC AND GCCLIBATOMIC_LIBRARY)
     set(SIMGRID_DEP   "${SIMGRID_DEP}   -Wl,--as-needed -latomic -Wl,--no-as-needed")
 endif()
 
     set(SIMGRID_DEP   "${SIMGRID_DEP}   -Wl,--as-needed -latomic -Wl,--no-as-needed")
 endif()
 
-if(enable_model-checking AND CMAKE_COMPILER_IS_GNUCC AND LINKER_VERSION VERSION_GREATER_EQUAL "2.30")
+if(enable_model-checking AND CMAKE_COMPILER_IS_GNUCC AND (NOT LINKER_VERSION VERSION_LESS "2.30"))
     set(SIMGRID_DEP   "${SIMGRID_DEP}   -Wl,-znoseparate-code")
 endif()
 
     set(SIMGRID_DEP   "${SIMGRID_DEP}   -Wl,-znoseparate-code")
 endif()