aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authorBrandon Schaefer <brandon.schaefer@canonical.com>2016-11-16 12:29:24 -0800
committerBrandon Schaefer <brandon.schaefer@canonical.com>2016-11-17 07:39:30 -0800
commit4b6e23e6e55e6cf60ab8909b18942223adb7321e (patch)
treef1f7374f57b5fb230710bcaa5b5e3b7f114a98f0 /project
parentdb545c69029b1cab8418bb0af80afbe7db7c7c0a (diff)
Allow overriding CROSSGUID_URL with relative path
Diffstat (limited to 'project')
-rw-r--r--project/cmake/modules/FindCrossGUID.cmake7
1 files changed, 6 insertions, 1 deletions
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)