mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-01-31 13:40:35 +00:00
Correctly define DEBUG macro
This commit is contained in:
parent
df0a84ec53
commit
e1dc5d8f68
1 changed files with 2 additions and 3 deletions
|
@ -188,7 +188,7 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_
|
|||
set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -W -Wpointer-arith -Wcast-qual -Wstrict-prototypes -Wno-unused-parameter -Wdeclaration-after-statement" )
|
||||
|
||||
# prepend to build type specific flags, to allow users to override
|
||||
set ( CMAKE_C_FLAGS_DEBUG "-g -DDEBUG ${CMAKE_C_FLAGS_DEBUG}" )
|
||||
set ( CMAKE_C_FLAGS_DEBUG "-g ${CMAKE_C_FLAGS_DEBUG}" )
|
||||
|
||||
if ( CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
# icc needs the restrict flag to recognize C99 restrict pointers
|
||||
|
@ -400,10 +400,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