aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-01-08 08:09:12 +1000
committerfuzzard <fuzzard@kodi.tv>2022-01-08 10:47:44 +1000
commitd9bebcfaada189ae51cbd259758351b8add1b11a (patch)
tree56fa4d29fa561aa7cef7e54c82b6266cb1faee35 /cmake
parent177e94b99897ecd7bd038d36b8bb0af1182c3f0c (diff)
[cmake] Module spdlog use VERSION helper
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindSpdlog.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/cmake/modules/FindSpdlog.cmake b/cmake/modules/FindSpdlog.cmake
index 6df9f64645..685556de90 100644
--- a/cmake/modules/FindSpdlog.cmake
+++ b/cmake/modules/FindSpdlog.cmake
@@ -15,15 +15,17 @@
if(ENABLE_INTERNAL_SPDLOG)
include(ExternalProject)
- file(STRINGS ${CMAKE_SOURCE_DIR}/tools/depends/target/libspdlog/Makefile VER REGEX "^[ ]*VERSION[ ]*=.+$")
- string(REGEX REPLACE "^[ ]*VERSION[ ]*=[ ]*" "" SPDLOG_VERSION "${VER}")
+ include(cmake/scripts/common/ModuleHelpers.cmake)
+
+ get_archive_name(libspdlog)
+ set(SPDLOG_VERSION ${SPDLOG_VER})
# allow user to override the download URL with a local tarball
# needed for offline build envs
if(SPDLOG_URL)
get_filename_component(SPDLOG_URL "${SPDLOG_URL}" ABSOLUTE)
else()
- set(SPDLOG_URL http://mirrors.kodi.tv/build-deps/sources/spdlog-${SPDLOG_VERSION}.tar.gz)
+ set(SPDLOG_URL http://mirrors.kodi.tv/build-deps/sources/${ARCHIVE})
endif()
if(VERBOSE)
message(STATUS "SPDLOG_URL: ${SPDLOG_URL}")