mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Correctly define DEBUG macro
This commit is contained in:
parent
44453ff232
commit
ca7f7047ad
1 changed files with 2 additions and 3 deletions
|
@ -189,7 +189,7 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_
|
|||
endif (CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
|
||||
# prepend to build type specific flags, to allow users to override
|
||||
set ( CMAKE_C_FLAGS_DEBUG "-g -DDEBUG -fsanitize=undefined ${CMAKE_C_FLAGS_DEBUG}" )
|
||||
set ( CMAKE_C_FLAGS_DEBUG "-g ${CMAKE_C_FLAGS_DEBUG}" )
|
||||
|
||||
endif ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
|
||||
|
@ -385,10 +385,9 @@ if ( NOT CMAKE_BUILD_TYPE )
|
|||
endif ( NOT CMAKE_BUILD_TYPE )
|
||||
|
||||
unset ( ENABLE_DEBUG CACHE )
|
||||
unset ( DEBUG CACHE )
|
||||
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
|
||||
set ( ENABLE_DEBUG 1 )
|
||||
set ( DEBUG 1 )
|
||||
add_definitions(-DDEBUG)
|
||||
endif ( CMAKE_BUILD_TYPE MATCHES "Debug" )
|
||||
|
||||
# Additional targets to perform clang-format/clang-tidy
|
||||
|
|
Loading…
Reference in a new issue