10 lines
355 B
CMake
10 lines
355 B
CMake
if (CMAKE_C_COMPILER_ID STREQUAL GNU)
|
|
set(CMAKE_C_FLAGS_DEBUG_INIT "-g -Og")
|
|
endif()
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
|
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g -Og")
|
|
endif()
|
|
|
|
string(REPLACE "-O2" "-O3" CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT}")
|
|
string(REPLACE "-O2" "-O3" CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT}")
|