From e243cc17f48c5e1b8db29cab85ca98b033d972fb Mon Sep 17 00:00:00 2001 From: Niklas Korz Date: Wed, 4 Sep 2024 14:51:30 +0200 Subject: [PATCH 1/3] Allow external declaration of packager version --- packager/version/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packager/version/CMakeLists.txt b/packager/version/CMakeLists.txt index fba4fb8282..ad56e0a23b 100644 --- a/packager/version/CMakeLists.txt +++ b/packager/version/CMakeLists.txt @@ -4,6 +4,7 @@ # license that can be found in the LICENSE file or at # https://developers.google.com/open-source/licenses/bsd +if(NOT DEFINED PACKAGER_VERSION) execute_process( COMMAND "${Python3_EXECUTABLE}" generate_version_string.py WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}" @@ -14,6 +15,7 @@ execute_process( if(NOT STATUS EQUAL 0) message(FATAL_ERROR "Failed to generate Packager version") endif() +endif() add_library(version STATIC version.cc) target_compile_definitions(version PRIVATE -- 2.46.0