diff options
author | Rechi <Rechi@users.noreply.github.com> | 2017-01-29 11:55:26 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2017-01-29 11:55:26 +0100 |
commit | f0ab7c8921cbbad7426bf08e4ca59da2a2e60cff (patch) | |
tree | 405f26d63b572c44de45061ab2485c2fc56fee7e /project | |
parent | e80803a74474e964731631a37314bddb83e8b335 (diff) |
[cmake] don't abort building binary addons if one addon cannot be downloaded
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/addons/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/project/cmake/addons/CMakeLists.txt b/project/cmake/addons/CMakeLists.txt index 96e544bb44..99152a7ec2 100644 --- a/project/cmake/addons/CMakeLists.txt +++ b/project/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() |