1 diff --git a/packager/version/CMakeLists.txt b/packager/version/CMakeLists.txt
2 index fba4fb8282..ad56e0a23b 100644
3 --- a/packager/version/CMakeLists.txt
4 +++ b/packager/version/CMakeLists.txt
6 # license that can be found in the LICENSE file or at
7 # https://developers.google.com/open-source/licenses/bsd
9 +if(NOT DEFINED PACKAGER_VERSION)
11 COMMAND "${Python3_EXECUTABLE}" generate_version_string.py
12 WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
13 @@ -14,6 +15,7 @@ execute_process(
14 if(NOT STATUS EQUAL 0)
15 message(FATAL_ERROR "Failed to generate Packager version")
19 add_library(version STATIC version.cc)
20 target_compile_definitions(version PRIVATE