summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to '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)