From 081f071ac11ab6ebaee1f7a2367fa1f9ecad784a Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 15 Oct 2022 17:31:39 +0200 Subject: Added version file to build artifacts to support automatic deployment --- StarsEx/CMakeLists.txt | 2 -- StarsEx/VersionInfo.cpp.conf | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'StarsEx') diff --git a/StarsEx/CMakeLists.txt b/StarsEx/CMakeLists.txt index 91e82d8..5083039 100644 --- a/StarsEx/CMakeLists.txt +++ b/StarsEx/CMakeLists.txt @@ -1,5 +1,4 @@ project(StarsEx) -include(GitDescribe) add_library( StarsEx STATIC ActiveWindow.cpp @@ -291,7 +290,6 @@ target_compile_definitions( StarsEx PRIVATE _ALLOW_KEYWORD_MACROS ) -git_describe(VERSION) configure_file(VersionInfo.cpp.conf ${CMAKE_CURRENT_BINARY_DIR}/VersionInfo.cpp @ONLY) target_sources( StarsEx diff --git a/StarsEx/VersionInfo.cpp.conf b/StarsEx/VersionInfo.cpp.conf index adaad2c..345135c 100644 --- a/StarsEx/VersionInfo.cpp.conf +++ b/StarsEx/VersionInfo.cpp.conf @@ -6,4 +6,4 @@ #include "VersionInfo.h" -const char* versionInfo = "@VERSION@"; +const char* versionInfo = "@STARSHATTER_VERSION@"; -- cgit v1.1