From 05104aef6c03ec6547675ab4f32c8ffd464ca3a4 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 19 Feb 2022 18:02:10 +0100 Subject: [PATCH] build: Properly define DEBUG macro again in debug mode --- cmake/build_helpers.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 6a19d22cb..759a11ae3 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -25,6 +25,7 @@ macro(addVersionDefines) set(IMHEX_VERSION_STRING ${IMHEX_VERSION}) elseif (CMAKE_BUILD_TYPE STREQUAL "Debug") set(IMHEX_VERSION_STRING ${IMHEX_VERSION}-Debug) + add_compile_definitions(DEBUG) elseif (CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") set(IMHEX_VERSION_STRING ${IMHEX_VERSION}-RelWithDebInfo) elseif (CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")