Restrict VERSION defines to main.cpp.

This commit is contained in:
Andrius Štikonas 2022-01-18 20:47:38 +00:00
parent e47827e20c
commit 909a03347a
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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}