From 48395584292da79bb839f6c2e7531c69e074fcb5 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 23 Jan 2021 18:24:06 +0100 Subject: [PATCH] Properly define IMHEX_VERSION when using RelWithDebInfo and MinSizeRel build type --- cmake/build_helpers.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index 40d6b9def..8e403139a 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -22,6 +22,8 @@ macro(addVersionDefines) set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DRELEASE -DIMHEX_VERSION=\"\\\"${PROJECT_VERSION}\"\\\"") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG -DIMHEX_VERSION=\"\\\"${PROJECT_VERSION}-Debug\"\\\"") + set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DRELEASE -DIMHEX_VERSION=\"\\\"${PROJECT_VERSION}-ReleaseWithDebugInfo\"\\\"") + set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -DRELEASE -DIMHEX_VERSION=\"\\\"${PROJECT_VERSION}-ReleaseMinimumSize\"\\\"") endmacro() macro(findLibraries)