mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Define DEBUG macro again only in debug builds
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user