Restrict VERSION defines to main.cpp.
This commit is contained in:
parent
e47827e20c
commit
909a03347a
|
@ -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)
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue