This commit is contained in:
Andrey Kamaev 2012-05-14 14:51:13 +00:00
parent 07658aeb74
commit 26fb7603c0

View File

@ -4,13 +4,13 @@ if (WIN32)
foreach(flags CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_DEBUG)
string(REPLACE "-O3" "-O2" ${flags} "${${flags}}")
endforeach()
endforeach()
endif()
if(CMAKE_COMPILER_IS_GNUC)
foreach(flags CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_DEBUG)
string(REPLACE "-O3" "-O2" ${flags} "${${flags}}")
endforeach()
endforeach()
endif()
endif()
if(MSVC)