diff options
author | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-05-13 18:21:14 +0000 |
---|---|---|
committer | sleske <sleske@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-05-13 18:21:14 +0000 |
commit | 7357346b633185e2a451cc6cd1513a8920ba8856 (patch) | |
tree | cfce6aa0fff04402ef1ad7d1ac60e97007b07ea4 /cmake | |
parent | c11fa5dca00600505265b6eb3d2d8df302d63b2d (diff) | |
download | navit-svn-7357346b633185e2a451cc6cd1513a8920ba8856.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')
-rw-r--r-- | cmake/navit_download.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/navit_download.cmake b/cmake/navit_download.cmake index 6f6cc8f5..bcc47b3e 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) |