Skip to content

Commit 32386ce

Browse files
committed
chore: change build type to DebugRelease - optimize but keep the debug symbols
1 parent 9858f3a commit 32386ce

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,7 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
3838
### Code block from: https://cliutils.gitlab.io/modern-cmake/chapters/projects/submodule.html
3939
include(FetchContent)
4040

41-
if(UNIX)
42-
SET(COMPILE_FLAGS "-g -ggdb -O0 -fno-rtti")
43-
elseif(WIN32)
44-
SET(COMPILE_FLAGS "")
45-
endif()
41+
SET(COMPILE_FLAGS "-ggdb -Ofast -fno-rtti") # optimize but also emit debug symbols
4642
SET( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${COMPILE_FLAGS}" )
4743

4844
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)

0 commit comments

Comments
 (0)