1
0
mirror of synced 2024-11-12 02:00:52 +01:00

build: Define DEBUG macro again only in debug builds

This commit is contained in:
WerWolv 2024-01-26 21:11:42 +01:00
parent b7349e42c7
commit f5c529b2b3

View File

@ -22,6 +22,7 @@ macro(addDefines)
add_compile_definitions(NDEBUG)
elseif (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(IMHEX_VERSION_STRING ${IMHEX_VERSION_STRING}-Debug)
add_compile_definitions(DEBUG)
elseif (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(IMHEX_VERSION_STRING ${IMHEX_VERSION_STRING})
add_compile_definitions(NDEBUG)
@ -31,7 +32,7 @@ macro(addDefines)
endif ()
if (IMHEX_ENABLE_STD_ASSERTS)
add_compile_definitions(DEBUG _GLIBCXX_DEBUG _GLIBCXX_VERBOSE)
add_compile_definitions(_GLIBCXX_DEBUG _GLIBCXX_VERBOSE)
endif()
if (IMHEX_STATIC_LINK_PLUGINS)