From 4b6e23e6e55e6cf60ab8909b18942223adb7321e Mon Sep 17 00:00:00 2001 From: Brandon Schaefer Date: Wed, 16 Nov 2016 12:29:24 -0800 Subject: Allow overriding CROSSGUID_URL with relative path --- project/cmake/modules/FindCrossGUID.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/project/cmake/modules/FindCrossGUID.cmake b/project/cmake/modules/FindCrossGUID.cmake index 95d6734550..bcae3d3070 100644 --- a/project/cmake/modules/FindCrossGUID.cmake +++ b/project/cmake/modules/FindCrossGUID.cmake @@ -7,9 +7,14 @@ if(ENABLE_INTERNAL_CROSSGUID) # allow user to override the download URL with a local tarball # needed for offline build envs - if(NOT EXISTS ${CROSSGUID_URL}) + if(CROSSGUID_URL) + get_filename_component(CROSSGUID_URL "${CROSSGUID_URL}" ABSOLUTE) + else() set(CROSSGUID_URL http://mirrors.kodi.tv/build-deps/sources/crossguid-${CGUID_VER}.tar.gz) endif() + if(VERBOSE) + message(STATUS "CROSSGUID_URL: ${CROSSGUID_URL}") + endif() set(CROSSGUID_LIBRARY ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/lib/libcrossguid.a) set(CROSSGUID_INCLUDE_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/include) -- cgit v1.2.3