Fix:graphics_win32:Transform non-opaque, grayscale etc png files to RGBA format properly.
[profile/ivi/navit.git] / navit / cmake / navit_download.cmake
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)
5 if(DOWNLOAD_ERR)
6   file(REMOVE ${DST})
7   message(SEND_ERROR "Download of sample map from ${URL} failed: "
8   "${DOWNLOAD_MSG}\n"
9   "To disable the sample map, run cmake with -DSAMPLE_MAP=n .")
10 endif(DOWNLOAD_ERR)