aboutsummaryrefslogtreecommitdiff
path: root/cmake/scripts
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2023-06-19 18:57:41 +1000
committerfuzzard <fuzzard@kodi.tv>2023-06-20 14:54:04 +1000
commita9459c8f95d4d9327886e4123dcb1bb2715bd1be (patch)
treed2177c8add454845eb76952d94b5c0e2ab3b9a3d /cmake/scripts
parentecbd3f1216036c4e7dd6c2b0b6c6605b5ebfe13d (diff)
[cmake][modulehelper] Add _DISABLE_VERSION option for SETUP_BUILD_VARS macro
In the event we dont have/need a VERSION file to exist, we can skip the use of it
Diffstat (limited to 'cmake/scripts')
-rw-r--r--cmake/scripts/common/ModuleHelpers.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/scripts/common/ModuleHelpers.cmake b/cmake/scripts/common/ModuleHelpers.cmake
index 7365c914ee..d38e5afe7c 100644
--- a/cmake/scripts/common/ModuleHelpers.cmake
+++ b/cmake/scripts/common/ModuleHelpers.cmake
@@ -141,8 +141,10 @@ macro(SETUP_BUILD_VARS)
set(PROJECTSOURCE ${CMAKE_SOURCE_DIR})
endif()
- # populate variables of data from VERSION file for MODULE
- get_versionfile_data()
+ if(NOT ${MODULE}_DISABLE_VERSION)
+ # populate variables of data from VERSION file for MODULE
+ get_versionfile_data()
+ endif()
# allow user to override the download URL with a local tarball
# needed for offline build envs