diff options
author | Aki <please@ignore.pl> | 2023-01-28 16:54:36 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2023-01-28 17:05:40 +0100 |
commit | e3fbcfc085411475cb07da84308f03dbd3405e5e (patch) | |
tree | 1fd0cdc7e8b8f90b032973dca983200b4d273998 /kurator | |
parent | 161f92d0cf6982e605a7ec1be6eb19dc60951c45 (diff) | |
download | kurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.zip kurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.tar.gz kurator-e3fbcfc085411475cb07da84308f03dbd3405e5e.tar.bz2 |
Commits will now trigger version-files regeneration during build
Diffstat (limited to 'kurator')
-rw-r--r-- | kurator/CMakeLists.txt | 2 | ||||
-rw-r--r-- | kurator/src/version.cpp.conf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kurator/CMakeLists.txt b/kurator/CMakeLists.txt index 7add534..e2e4821 100644 --- a/kurator/CMakeLists.txt +++ b/kurator/CMakeLists.txt @@ -27,7 +27,7 @@ target_link_libraries( PRIVATE stats PRIVATE universe ) -configure_file(src/version.cpp.conf "${CMAKE_CURRENT_BINARY_DIR}/version.cpp" @ONLY) +add_version_file(version.cpp src/version.cpp.conf) target_sources( ${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_BINARY_DIR}/version.cpp" diff --git a/kurator/src/version.cpp.conf b/kurator/src/version.cpp.conf index a6d0aa0..a389f23 100644 --- a/kurator/src/version.cpp.conf +++ b/kurator/src/version.cpp.conf @@ -2,7 +2,7 @@ namespace kurator { -const char* VERSION {"@KURATOR_VERSION@"}; +const char* VERSION {"@HASH@"}; } // namespace kurator |