mirror of
https://codeberg.org/dnkl/yambar.git
synced 2025-04-23 20:35:42 +02:00
make: add global definition _DEBUG when building in debug mode
This commit is contained in:
parent
e0bd7abec6
commit
c1e71eca60
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ set(CMAKE_C_STANDARD_REQUIRED ON)
|
|||
set(CMAKE_C_EXTENSIONS OFF)
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
set_property(DIRECTORY . APPEND PROPERTY COMPILE_DEFINITIONS
|
||||
$<$<CONFIG:Debug>:_DEBUG>
|
||||
)
|
||||
|
||||
set(CMAKE_C_FLAGS "-Wall -Werror ${CMAKE_C_FLAGS}")
|
||||
|
||||
find_package(Threads REQUIRED)
|
||||
|
|
Loading…
Add table
Reference in a new issue