Re: [CMake] FTP client in CMake?

2011-12-30 Thread Robert Dailey
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 david.c...@kitware.com 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 rcdai...@gmail.com 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

[CMake] FTP client in CMake?

2011-12-29 Thread 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

Re: [CMake] FTP client in CMake?

2011-12-29 Thread Pau Garcia i Quiles
Hi,

Doesn't file(DOWNLOAD ... ) work for you?


On Fri, Dec 30, 2011 at 12:01 AM, Robert Dailey rcdai...@gmail.com 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?

2011-12-29 Thread David Cole
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 rcdai...@gmail.com 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?

2011-12-29 Thread norulez
You could use wget or curl to download files.

Best Regards
NoRulez

Am 30.12.2011 um 00:01 schrieb Robert Dailey rcdai...@gmail.com:

 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