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}