aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-04-30 07:30:56 +1000
committerfuzzard <fuzzard@kodi.tv>2022-04-30 19:34:44 +1000
commit93fa1b5c0ee4fe74fc541d90eefbd9a25763271b (patch)
treeef40700184c5aff4ba6ff1680bc7506c6c56be1f /cmake
parent9fdca02aa4d0fbe7b417a49ed302aea9e22b3dc6 (diff)
[cmake] rename function get_archive_name to get_versionfile_data
rename to reflect current usage. Old name was from my initial implementation and it no longer reflects what the function does.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindLibDvd.cmake2
-rw-r--r--cmake/scripts/common/ModuleHelpers.cmake4
2 files changed, 3 insertions, 3 deletions
diff --git a/cmake/modules/FindLibDvd.cmake b/cmake/modules/FindLibDvd.cmake
index 78b047ac2f..683a886db8 100644
--- a/cmake/modules/FindLibDvd.cmake
+++ b/cmake/modules/FindLibDvd.cmake
@@ -77,7 +77,7 @@ else()
set(DEPENDS_TARGETS_DIR ${CMAKE_SOURCE_DIR}/tools/depends/target)
foreach(dvdlib ${dvdlibs})
- get_archive_name(${dvdlib})
+ get_versionfile_data(${dvdlib})
string(TOUPPER ${dvdlib} DVDLIB)
# allow user to override the download URL with a local tarball
diff --git a/cmake/scripts/common/ModuleHelpers.cmake b/cmake/scripts/common/ModuleHelpers.cmake
index a5bf8db56d..b2273c5688 100644
--- a/cmake/scripts/common/ModuleHelpers.cmake
+++ b/cmake/scripts/common/ModuleHelpers.cmake
@@ -7,7 +7,7 @@
# ARCHIVE will be set to parent scope
# MODULENAME_VER will be set to parent scope (eg FFMPEG_VER, DAV1D_VER)
# MODULENAME_BASE_URL will be set to parent scope if exists in VERSION file (eg FFMPEG_BASE_URL)
-function(get_archive_name module_name)
+function(get_versionfile_data module_name)
string(TOUPPER ${module_name} UPPER_MODULE_NAME)
# Dependency path
@@ -90,7 +90,7 @@ endfunction()
# Macro to factor out the repetitive URL setup
macro(SETUP_BUILD_VARS)
- get_archive_name(${MODULE_LC})
+ get_versionfile_data(${MODULE_LC})
string(TOUPPER ${MODULE_LC} MODULE)
# allow user to override the download URL with a local tarball