From 0d849dafa0514bf3f6272c3a444bb2273e36b228 Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 4 Jan 2010 10:47:26 +0000 Subject: [PATCH] Some piece of code in salome does not compile with -O2 !!! --- salome_adm/cmake_files/FindPLATFORM.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2