Enable DEBUG flag differently

This commit is contained in:
William Robinet 2023-09-11 11:24:17 +02:00
parent cec86cfc7d
commit bd730f31c4
No known key found for this signature in database
GPG key ID: 003FA3DF74C7A949

View file

@ -14,7 +14,8 @@ option(DISABLE_OPTIMIZATION "Build without compiler optimizations" OFF)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
if(DEBUG_BUILD)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb3 -DDEBUG")
add_definitions(-DDEBUG)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ggdb3")
endif()
if(DISABLE_OPTIMIZATION)