Skip to content

Commit

Permalink
CMakeLists.txt: Add DEBUG flag when building DEBUG build
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviermartin committed Apr 3, 2024
1 parent 8f17232 commit aac4e06
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aac4e06

Please sign in to comment.