Avoid hardcoded app version

Use ${PROJECT_VERSION} from CMake to provide the project version
information instead of hardcoding.
This commit is contained in:
Boyuan Yang
2020-09-04 21:55:46 -04:00
committed by borgmanJeremy
parent fb2f00ca73
commit 4541c79cdc

View File

@@ -103,7 +103,7 @@ target_link_libraries(
Qt5::Widgets)
target_compile_definitions(flameshot PRIVATE APP_PREFIX="${CMAKE_INSTALL_PREFIX}")
target_compile_definitions(flameshot PRIVATE APP_VERSION="v0.8.0")
target_compile_definitions(flameshot PRIVATE APP_VERSION="v${PROJECT_VERSION}")
target_compile_definitions(flameshot PRIVATE IMGUR_CLIENT_ID="313baf0c7b4d3ff")
target_compile_definitions(flameshot PRIVATE QAPPLICATION_CLASS=QApplication)