Thanks Cristian I'll look at curl.
Https links work instantly but there isn't one for FFTW.... Kris On 27 Jan 2018 12:07, "Cristian Adam" <cristian.a...@gmail.com> wrote: > On Sat, Jan 27, 2018 at 12:12 PM, Kris Thielemans < > kris.f.thielem...@gmail.com> wrote: > >> Dear all >> >> >> >> I have had no response to this. The problem continues with CMake 3.10.2. >> I have no idea what causes this or how to fix it. Any help would be much >> appreciated. >> >> >> >> Kris >> >> >> >> *From:* Kris Thielemans >> >> *Sent:* 19 December 2017 08:15 >> *To:* cmake@cmake.org >> *Subject:* downloading ftp URL problems >> >> >> >> 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 >> >> >> > > CMake, as far as I know, uses libcurl to handle network transfers. > You should compare cmake downloading with a curl build > <https://curl.haxx.se/download.html>not with Firefox. > Rumor has it that curl is part of Windows now. > > If the https link works instantly, why not use it also with cmake? > > Cheers, > Cristian. >
-- 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