fix(CMake): Debugger flags were not set

This caused optimization to be turned on for debug builds
This commit is contained in:
Jiří Štefka 2024-09-24 12:43:39 +02:00
parent 6f92d83c97
commit 17d14e61cc
Signed by: jiriks74
GPG Key ID: 1D5E30D3DB2264DE
3 changed files with 3 additions and 0 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)