From b219589af3027937b264308418f72c33f966eda4 Mon Sep 17 00:00:00 2001 From: William JCM Date: Mon, 5 Dec 2022 14:38:50 +0100 Subject: [PATCH] CMakeLists: change how defines are handled. --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f69f00b..36a9f6e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -188,9 +188,10 @@ add_executable(MassBuilderSaveTool WIN32 ) if(CMAKE_BUILD_TYPE STREQUAL Debug) - add_compile_definitions(SAVETOOL_DEBUG_BUILD) + target_compile_definitions(Logger PRIVATE SAVETOOL_DEBUG_BUILD) + target_compile_definitions(MassBuilderSaveTool PRIVATE SAVETOOL_DEBUG_BUILD) endif() -add_compile_definitions( +target_compile_definitions(MassBuilderSaveTool PRIVATE SAVETOOL_VERSION="${SAVETOOL_PROJECT_VERSION}" SAVETOOL_CODENAME="Enigmatic Ellenier" SUPPORTED_GAME_VERSION="0.9.x"