CMakeLists.txt: Add DEBUG flag when building DEBUG build

latest-fixes
Olivier Martin 2024-04-03 19:57:19 +02:00
parent 8f17232216
commit aac4e069c9
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Debug")
endif()
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
add_definitions(-DDEBUG)
endif()
# Show all the warnings
if (MSVC)
# warning level 4