Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
and now with the correct cmake syntax
[simgrid.git] / buildtools / Cmake / Flags.cmake
index be0a919..d115f49 100644 (file)
@@ -40,7 +40,8 @@ endif()
 if(WIN32) # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50293
   if (COMPILER_C_VERSION_MAJOR_MINOR MATCHES "4.7" OR 
       COMPILER_C_VERSION_MAJOR_MINOR MATCHES "4.6")
-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --disable-lto")
+    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --disable-lto")
+  endif()
 endif()
 
 if(NOT enable_debug)