Skip to content

Commit

Permalink
CMake: enable -DDEBUG for debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 16, 2022
1 parent 55840fc commit 485ca7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gdal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ else ()
endif ()

if (CMAKE_BUILD_TYPE MATCHES Debug)
add_definitions(-DDEBUG)
check_c_compiler_flag(-ftrapv HAVE_FTRAPV)
if (HAVE_FTRAPV)
set(GDAL_C_WARNING_FLAGS ${GDAL_C_WARNING_FLAGS} -ftrapv)
Expand Down

0 comments on commit 485ca7f

Please sign in to comment.