Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
actually we need GCC > v4.8.5 for LTO
[simgrid.git] / tools / cmake / GCCFlags.cmake
index e9a456f81b8e8ff6cb9984e4682098a10c9d1830..22ef81faeef306b00db8e455ad2ac35737f17535 100644 (file)
@@ -71,7 +71,7 @@ if(enable_lto) # User wants LTO. Try if we can do that
     #    Please submit a full bug report, with preprocessed source if appropriate.
     # So instead, we push the support forward
 
-    if ( (CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8")
+    if ( (CMAKE_C_COMPILER_VERSION VERSION_GREATER "4.8.5")
          AND (LINKER_VERSION VERSION_GREATER "2.22"))
       set(enable_lto ON)
     endif()