summaryrefslogtreecommitdiff
path: root/cmake/navit_download.cmake
diff options
context:
space:
mode:
authorsleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-05-13 18:21:14 +0000
committersleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-05-13 18:21:14 +0000
commit981de1bf9403f5b54dbf017c6138bf64dfafb98b (patch)
treecfce6aa0fff04402ef1ad7d1ac60e97007b07ea4 /cmake/navit_download.cmake
parent5f5f18308c43c0b9b1984a4e6208bcc33ffb9761 (diff)
downloadnavit-981de1bf9403f5b54dbf017c6138bf64dfafb98b.tar.gz
Fix:maps:Make build fail cleanly if sample map download fails, but tell user how to skip it.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5104 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'cmake/navit_download.cmake')
-rw-r--r--cmake/navit_download.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/navit_download.cmake b/cmake/navit_download.cmake
index 6f6cc8f51..bcc47b3e1 100644
--- a/cmake/navit_download.cmake
+++ b/cmake/navit_download.cmake
@@ -3,6 +3,8 @@ file(DOWNLOAD ${URL} ${DST} SHOW_PROGRESS STATUS DOWNLOAD_STATUS)
list(GET DOWNLOAD_STATUS 0 DOWNLOAD_ERR)
list(GET DOWNLOAD_STATUS 1 DOWNLOAD_MSG)
if(DOWNLOAD_ERR)
- message(WARNING "Download of sample map from ${URL} failed: ${DOWNLOAD_MSG}.")
file(REMOVE ${DST})
+ message(SEND_ERROR "Download of sample map from ${URL} failed: "
+ "${DOWNLOAD_MSG}\n"
+ "To disable the sample map, run cmake with -DSAMPLE_MAP=n .")
endif(DOWNLOAD_ERR)