python312Packages.types-aiobotocore: 2.15.2 -> 2.15.2.post3 (#361801)
[NixPkgs.git] / pkgs / by-name / sh / shaka-packager / 0001-Allow-external-declaration-of-packager-version.patch
blobc6d54b5943de20515c7f72e3609ff62e4c87facd
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
5 @@ -4,6 +4,7 @@
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)
10 execute_process(
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")
16 endif()
17 +endif()
19 add_library(version STATIC version.cc)
20 target_compile_definitions(version PRIVATE