From 909a03347a7be26f7da54a2970889620dbf20707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Tue, 18 Jan 2022 20:47:38 +0000 Subject: [PATCH] Restrict VERSION defines to main.cpp. --- CMakeLists.txt | 2 -- src/CMakeLists.txt | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 34ba82b..cc18b52 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,8 +21,6 @@ set(CMAKE_USE_RELATIVE_PATHS OFF) set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) set(KDE_INSTALL_USE_QT_SYS_PATHS ON CACHE BOOL "Install mkspecs files, Plugins and Imports to the Qt 5 install dir" FORCE) -add_definitions(-D'VERSION="${RELEASE_SERVICE_VERSION}"') - set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 46f4d16..2f37d1e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -7,6 +7,8 @@ include(config/CMakeLists.txt) include(gui/CMakeLists.txt) include(util/CMakeLists.txt) +set_property(SOURCE main.cpp APPEND PROPERTY COMPILE_DEFINITIONS "VERSION=\"${RELEASE_SERVICE_VERSION}\"") + set(partitionmanager_SRCS main.cpp ${CONFIG_SRC}