aboutsummaryrefslogtreecommitdiff
path: root/project
diff options
context:
space:
mode:
authormontellese <montellese@xbmc.org>2015-02-13 09:41:58 +0100
committermontellese <montellese@xbmc.org>2015-02-18 09:18:45 +0100
commit91cdebe22b4b33db25b79efae9626e740998c509 (patch)
tree05f42e50cebbf54081ef795aeebf2ef87b96942f /project
parentcb5353989ffa8103fc3c5b4bf94616f293ff1180 (diff)
cmake: only determine the URL of a dependency if it will be downloaded and built
Diffstat (limited to 'project')
-rw-r--r--project/cmake/scripts/common/handle-depends.cmake16
1 files changed, 9 insertions, 7 deletions
diff --git a/project/cmake/scripts/common/handle-depends.cmake b/project/cmake/scripts/common/handle-depends.cmake
index ef0f7fa549..0e766fea7a 100644
--- a/project/cmake/scripts/common/handle-depends.cmake
+++ b/project/cmake/scripts/common/handle-depends.cmake
@@ -22,15 +22,10 @@ function(add_addon_depends addon searchpath)
list(LENGTH def deflength)
get_filename_component(dir ${file} PATH)
- # get the id and url of the dependency
- set(url "")
+ # get the id of the dependency
if(NOT "${def}" STREQUAL "")
- # read the id and the url from the file
+ # read the id from the file
list(GET def 0 id)
- if(deflength GREATER 1)
- list(GET def 1 url)
- message(STATUS "${id} url: ${url}")
- endif()
else()
# read the id from the filename
get_filename_component(id ${file} NAME_WE)
@@ -41,6 +36,13 @@ function(add_addon_depends addon searchpath)
check_target_platform(${dir} ${CORE_SYSTEM_NAME} platform_found)
if(${platform_found} AND NOT TARGET ${id})
+ # determine the download URL of the dependency
+ set(url "")
+ if(deflength GREATER 1)
+ list(GET def 1 url)
+ message(STATUS "${id} url: ${url}")
+ endif()
+
# check if there are any library specific flags that need to be passed on
if(EXISTS ${dir}/flags.txt)
file(STRINGS ${dir}/flags.txt extraflags)