2013/7/12 Alan W. Irwin <ir...@beluga.phys.uvic.ca>: > On 2013-07-11 16:30-0700 Alan W. Irwin wrote: > >> These commands >> >> file(DOWNLOAD >> "http://download.gnome.org/sources/glib/2.32/glib-2.32.1.tar.xz" >> >> "/home/software/plplot_svn/HEAD/plplot_allura/cmake/build_projects/cmake_downloaded_glib-2.32.1.tar.xz" >> SHOW_PROGRESS STATUS status) >> message(STATUS "Download status = ${status}") >> >> instantly give me the following results: >> >> -- [download 0% complete] >> -- Download status = 1;"unsupported protocol"
[...] Then may be the "unsupported protocol" is not http...keep reading > > So I hope someone else will also try experiments to see if they can > discover _any_ http://*.tar.xz URL that can be downloaded by > file(DOWNLOAD...). If I use the curl -L options you use I can see: GET /sources/glib/2.32/glib-2.32.1.tar.xz HTTP/1.1 Location: https://download.gnome.org/sources/glib/2.32/glib-2.32.1.tar.xz Issue another request to this URL: 'https://download.gnome.org/sources/glib/2.32/glib-2.32.1.tar.xz GET /sources/glib/2.32/glib-2.32.1.tar.xz Location: http://ftp.gnome.org/pub/GNOME/sources/glib/2.32/glib-2.32.1.tar.xz Issue another request to this URL: 'http://ftp.gnome.org/pub/GNOME/sources/glib/2.32/glib-2.32.1.tar.xz GET /pub/GNOME/sources/glib/2.32/glib-2.32.1.tar.xz ... then it seems that the initial http URL is redirected to https which is redirected to ftp... then I tried my CMake build with with your: file(DOWNLOAD "http://download.gnome.org/sources/glib/2.32/glib-2.32.1.tar.xz" "/tmp/cmake_downloaded_glib-2.32.1.tar.xz" SHOW_PROGRESS STATUS status) message(STATUS "Download status = ${status}") and it works as expected. so my best bet is that the CMake command your are using has no SSL support which makes the "https" handling fail with "unsupported protocol". -- Erk L'élection n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers