aboutsummaryrefslogtreecommitdiff
path: root/cmake/addons
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2017-01-29 11:14:32 +0100
committerRechi <Rechi@users.noreply.github.com>2017-01-29 11:14:32 +0100
commit4ead6d1f69095c8fe07513819d82fa7e5ac5737a (patch)
tree0acd8fa69b90552b27c7e472bd40a9698dd12347 /cmake/addons
parent6d5a87b1f55976ab47b0b93c3b363bca0b09f95b (diff)
[cmake] don't abort building binary addons if one addon cannot be downloaded
Diffstat (limited to 'cmake/addons')
-rw-r--r--cmake/addons/CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/addons/CMakeLists.txt b/cmake/addons/CMakeLists.txt
index f1e2fce04a..a6ea149e3f 100644
--- a/cmake/addons/CMakeLists.txt
+++ b/cmake/addons/CMakeLists.txt
@@ -327,7 +327,12 @@ foreach(addon ${addons})
file(DOWNLOAD "${url}" "${BUILD_DIR}/download/${archive_name}.tar.gz" STATUS dlstatus LOG dllog SHOW_PROGRESS)
list(GET dlstatus 0 retcode)
if(NOT ${retcode} EQUAL 0)
- message(FATAL_ERROR "ERROR downloading ${url} - status: ${dlstatus} log: ${dllog}")
+ file(REMOVE ${BUILD_DIR}/download/${archive_name}.tar.gz)
+ message(STATUS "ERROR downloading ${url} - status: ${dlstatus} log: ${dllog}")
+ # add a dummy target for addons to get it in addons failure file
+ list(APPEND ALL_ADDONS_BUILDING ${id})
+ add_custom_target(${id} COMMAND ${CMAKE_COMMAND} -E echo "IGNORED ${id} - download failed" COMMAND exit 1)
+ continue()
endif()
endif()