diff options
author | montellese <montellese@xbmc.org> | 2014-07-28 13:25:23 +0200 |
---|---|---|
committer | montellese <montellese@xbmc.org> | 2014-08-01 10:47:05 +0200 |
commit | e65ed23588a58edf0bd926bc5d9186305667b0e5 (patch) | |
tree | dd4fdc631059672734d96d3f92a8f2fc257be5fc /project/cmake | |
parent | 219d0e1c1f9aa6118736d60a6b08e223c8d67b87 (diff) |
binary addons: only read the URL and revision of an addon if it is built
Diffstat (limited to 'project/cmake')
-rw-r--r-- | project/cmake/addons/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/project/cmake/addons/CMakeLists.txt b/project/cmake/addons/CMakeLists.txt index e358855500..48bca5102c 100644 --- a/project/cmake/addons/CMakeLists.txt +++ b/project/cmake/addons/CMakeLists.txt @@ -83,8 +83,6 @@ foreach(addon ${addons}) file(STRINGS ${addon} def) string(REPLACE " " ";" def ${def}) list(GET def 0 id) - list(GET def 1 url) - list(GET def 2 revision) list(FIND ADDONS_TO_BUILD ${id} idx) if(idx GREATER -1 OR ADDONS_TO_BUILD STREQUAL "all") @@ -93,6 +91,10 @@ foreach(addon ${addons}) file(REMOVE_RECURSE "${CMAKE_INSTALL_PREFIX}/${id}/") endif() + # get the URL and revision of the addon + list(GET def 1 url) + list(GET def 2 revision) + # add the addon as an external project for automatic building externalproject_add(${id} GIT_REPOSITORY ${url} |