Skip to content

Commit

Permalink
[cmake] Add compile-time PONCA_DEBUG
Browse files Browse the repository at this point in the history
Automatically enabled in debug and relwithdebinfo modes
  • Loading branch information
nmellado committed Feb 5, 2024
1 parent edb015d commit aa966c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ if( NOT cmake_build_type_tolower STREQUAL "debug"
endif()


if( cmake_build_type_tolower STREQUAL "debug"
OR cmake_build_type_tolower STREQUAL "relwithdebinfo" )
message(STATUS "Compile with PONCA_DEBUG")
add_compile_definitions(PONCA_DEBUG)
endif()


# get changeset id
find_package(Git)
if(GIT_FOUND)
Expand Down

0 comments on commit aa966c1

Please sign in to comment.