fix(CMake): Debugger flags were not set
This caused optimization to be turned on for debug builds
This commit is contained in:
parent
6f92d83c97
commit
17d14e61cc
@ -12,6 +12,7 @@ option(ENABLE_COVERAGE "Enable test coverage" ON)
|
||||
|
||||
# Set C standard to C99
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-std=c99 -Wall -Wextra -Wunreachable-code -g -O0")
|
||||
|
||||
# Set the project name and version number. This allows for a user of your
|
||||
project(${PROJECT_NAME} VERSION 0.1)
|
||||
|
@ -12,6 +12,7 @@ option(ENABLE_COVERAGE "Enable test coverage" ON)
|
||||
|
||||
# Set C standard to C99
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-std=c99 -Wall -Wextra -Wunreachable-code -g -O0")
|
||||
|
||||
# Set the project name and version number. This allows for a user of your
|
||||
project(${PROJECT_NAME} VERSION 0.1)
|
||||
|
@ -12,6 +12,7 @@ option(ENABLE_COVERAGE "Enable test coverage" ON)
|
||||
|
||||
# Set C standard to C99
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99")
|
||||
set(CMAKE_C_FLAGS_DEBUG "-std=c99 -Wall -Wextra -Wunreachable-code -g -O0")
|
||||
|
||||
# Set the project name and version number. This allows for a user of your
|
||||
project(${PROJECT_NAME} VERSION 0.1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user