]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Some piece of code in salome does not compile with -O2 !!!
authoradam <adam>
Mon, 4 Jan 2010 10:47:26 +0000 (10:47 +0000)
committeradam <adam>
Mon, 4 Jan 2010 10:47:26 +0000 (10:47 +0000)
salome_adm/cmake_files/FindPLATFORM.cmake

index f0ab69771805152de00baf1b6dd5988fbb7a5093..eaa0eaa754e83f2795d97ef4e805c416eb9813bc 100644 (file)
@@ -49,8 +49,8 @@ IF(CMAKE_BUILD_TYPE)
     SET(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE} CACHE STRING "compilation types" FORCE)
   ELSE(WINDOWS)
     IF(CMAKE_BUILD_TYPE STREQUAL Release)
-      SET(CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG")
-      SET(CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG")
+      SET(CMAKE_C_FLAGS_RELEASE "-O1 -DNDEBUG")
+      SET(CMAKE_CXX_FLAGS_RELEASE "-O1 -DNDEBUG")
     ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
   ENDIF(WINDOWS)
 ENDIF(CMAKE_BUILD_TYPE)