Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Simple CMake script to help Jorge identify issue with the version of CMake used to setup Slicer miniconda dashboard on MacOSX
#
# To run the script:
#
# cmake -DDEST=/home/jcfr -P 2015-08-25_test_cmake_download_from_dropbox.cmake
#
if(NOT EXISTS "${DEST}")
set(DEST ".")
endif()
set(url "https://www.dropbox.com/s/j68c3b9rhmvgqwv/Miniconda-Mac.tar.gz")
set(dest "${DEST}/Miniconda-Mac.tar.gz")
file(DOWNLOAD ${url} ${dest} STATUS status EXPECTED_MD5 e819bae1772e784527ad22d50b878949 SHOW_PROGRESS)
list(GET status 0 error_code)
list(GET status 1 error_msg)
if(error_code)
message(FATAL_ERROR "error: Failed to download ${url} - ${error_msg}")
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.