MSVC: Don't use GCC -O/-g flags. #3267

This commit is contained in:
Rui Abreu Ferreira 2015-05-17 13:59:31 +01:00 committed by Justin M. Keyes
parent acdac914d5
commit 9bc1b78058

View File

@ -161,7 +161,7 @@ endif()
if(HAS_OG_FLAG) if(HAS_OG_FLAG)
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Og -g" set(CMAKE_C_FLAGS_RELWITHDEBINFO "-Og -g"
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE) CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
else() elseif(NOT MSVC)
set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g" set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g"
CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE) CACHE STRING "Flags used by the compiler during release builds with debug info." FORCE)
endif() endif()