[CMake] FTP client in CMake?

Robert Dailey rcdailey at gmail.com
Fri Dec 30 09:04:02 EST 2011


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.cole at 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 <rcdailey at 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20111230/e046f427/attachment.htm>


More information about the CMake mailing list