[CMake] FTP client in CMake?
I don't think I've seen a way to use CMake to download files from an FTP server. For certain third party libraries, I'd like to store them on an FTP server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script to download the files from that FTP server. Is it possible to add this functionality? Could anyone recommend a workaround? - Robert Dailey -- 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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FTP client in CMake?
Hi, Doesn't file(DOWNLOAD ... ) work for you? On Fri, Dec 30, 2011 at 12:01 AM, Robert Dailey wrote: > I don't think I've seen a way to use CMake to download files from an FTP > server. For certain third party libraries, I'd like to store them on an FTP > server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script > to download the files from that FTP server. > > Is it possible to add this functionality? Could anyone recommend a > workaround? -- Pau Garcia i Quiles http://www.elpauer.org (Due to my workload, I may need 10 days to answer) -- 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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FTP client in CMake?
file(DOWNLOAD ...) works with "ftp:" urls. For example, the following script works for me (with CMake 2.8.6): get_filename_component(dir "${CMAKE_CURRENT_LIST_FILE}" PATH) file(DOWNLOAD "ftp://ftp.cs.brown.edu/pub/benchmark.ps.Z"; "${dir}/benchmark.ps.Z" ) I found a small file on the first server mentioned by google when searching for "public anonymous ftp server" HTH, David On Thu, Dec 29, 2011 at 6:01 PM, Robert Dailey wrote: > I don't think I've seen a way to use CMake to download files from an FTP > server. For certain third party libraries, I'd like to store them on an FTP > server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script > to download the files from that FTP server. > > Is it possible to add this functionality? Could anyone recommend a > workaround? > > - > Robert Dailey > > -- > > 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://www.cmake.org/mailman/listinfo/cmake > -- 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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FTP client in CMake?
You could use wget or curl to download files. Best Regards NoRulez Am 30.12.2011 um 00:01 schrieb Robert Dailey : > I don't think I've seen a way to use CMake to download files from an FTP > server. For certain third party libraries, I'd like to store them on an FTP > server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script > to download the files from that FTP server. > > Is it possible to add this functionality? Could anyone recommend a workaround? > > - > Robert Dailey > -- > > 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://www.cmake.org/mailman/listinfo/cmake -- 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://www.cmake.org/mailman/listinfo/cmake
Re: [CMake] FTP client in CMake?
Thanks David. Apparently I was looking in the wrong place, I assumed it would be a cmake option :) Happy New Year!! - Robert Dailey On Thu, Dec 29, 2011 at 5:11 PM, David Cole wrote: > file(DOWNLOAD ...) works with "ftp:" urls. > > For example, the following script works for me (with CMake 2.8.6): > > get_filename_component(dir "${CMAKE_CURRENT_LIST_FILE}" PATH) > > file(DOWNLOAD > "ftp://ftp.cs.brown.edu/pub/benchmark.ps.Z"; > "${dir}/benchmark.ps.Z" > ) > > I found a small file on the first server mentioned by google when > searching for "public anonymous ftp server" > > > HTH, > David > > > On Thu, Dec 29, 2011 at 6:01 PM, Robert Dailey wrote: > >> I don't think I've seen a way to use CMake to download files from an FTP >> server. For certain third party libraries, I'd like to store them on an FTP >> server and use CMAKE_COMMAND to invoke CMake.exe from within a cmake script >> to download the files from that FTP server. >> >> Is it possible to add this functionality? Could anyone recommend a >> workaround? >> >> - >> Robert Dailey >> >> -- >> >> 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://www.cmake.org/mailman/listinfo/cmake >> > > -- 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://www.cmake.org/mailman/listinfo/cmake