From: adam Date: Mon, 4 Jan 2010 10:47:26 +0000 (+0000) Subject: Some piece of code in salome does not compile with -O2 !!! X-Git-Tag: PARAVIS_29012010~23 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=0d849dafa0514bf3f6272c3a444bb2273e36b228;p=modules%2Fkernel.git Some piece of code in salome does not compile with -O2 !!! --- diff --git a/salome_adm/cmake_files/FindPLATFORM.cmake b/salome_adm/cmake_files/FindPLATFORM.cmake index f0ab69771..eaa0eaa75 100644 --- a/salome_adm/cmake_files/FindPLATFORM.cmake +++ b/salome_adm/cmake_files/FindPLATFORM.cmake @@ -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)