Hi
I'm try to get a file via ftp in EXTERNAL_PROJECT_ADD by specifying the URL. This takes a long time on my Windows machine using CMake 3.10.1 (and previous versions of CMake) as it needs multiple retries: 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' 2> -- Retrying... 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' 2> -- Retry after 5 seconds (attempt #2) ... 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' 2> -- Retry after 5 seconds (attempt #3) ... 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' 2> -- Retry after 15 seconds (attempt #4) ... 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' 2> -- Retry after 60 seconds (attempt #5) ... 2> -- Using src='ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip' -- [download 0% complete] ... When using on https link, the download starts immediately. Any suggestions why this happens, what I can do about it, or how I could specify an initial sleep period to skip the first retries (but I'm not sure if that'd help)? Some more detail: I'm using Windows 10 home with latest CMake installed via the msi. Using the URL in a browser (firefox) works fine but does need a ~5s wait before I get the "save" dialog box. Checking the created download.cmake, it is just a loop with different sleep_seconds doing the following Set(url "ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip") execute_process(COMMAND "${CMAKE_COMMAND}" -E sleep "${sleep_seconds}") file( DOWNLOAD "${url}" "C:/Users/krisf/Documents/devel/fftw-3.3.5-dll64.zip" SHOW_PROGRESS # no TIMEOUT STATUS status LOG log ) Thanks for your help Kris Thielemans Reader in Medical Imaging Physics at University College London, Institute of Nuclear Medicine, UCL Hospital, Tower 5, 235 Euston Road, London NW1 2BU, UK
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake