Skip to content

Commit

Permalink
Add -O0 option to debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
mortinger91 committed May 28, 2024
1 parent ee4fcab commit af4fa6d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ProjectFolder/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ set_target_properties(
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CUSTOM_COMPILE_OPTIONS
-Wall
-O0
)
if (UNIX)
list(APPEND CUSTOM_COMPILE_OPTIONS
-Werror
-Wpedantic
-Wextra
-Wpedantic
-Wextra
)
endif()
target_compile_options(
Expand Down

0 comments on commit af4fa6d

Please sign in to comment.