1 message("Downloading ${URL}")
2 file(DOWNLOAD ${URL} ${DST} SHOW_PROGRESS STATUS DOWNLOAD_STATUS)
3 list(GET DOWNLOAD_STATUS 0 DOWNLOAD_ERR)
4 list(GET DOWNLOAD_STATUS 1 DOWNLOAD_MSG)
7 message(SEND_ERROR "Download of sample map from ${URL} failed: "
9 "To disable the sample map, run cmake with -DSAMPLE_MAP=n .")