[CMake] Feature request: expose curl to cmake -E

iosif neitzke iosif.neitzke+cmake at gmail.com
Sat Dec 19 09:56:26 EST 2015


Mostly yes.

On Sat, Dec 19, 2015 at 8:45 AM, Greg Marr <greg.marr at autodesk.com> wrote:
> iosif neitzke wrote:
>>On Fri, Dec 18, 2015 at 2:18 PM, Jakob van Bethlehem <jsvanbethlehem at gmail.com> wrote:
>>> Depending on what you precisely wish to achieve, maybe file(DOWNLOAD) already fits your needs?
>>> https://cmake.org/cmake/help/v3.1/command/file.html
>>
>>It does, generally, in the way that ExternalProject also fits, but I think would require writing wrapper >scripts.  My specific use case was something like:
>>
>>cmake -E curl http://jenkins/buildA/artifacts/stuff.tar
>>cmake -E tar xzf stuff.tar
>>cmake -Hstuff/path/to/CMakeLists/ -Bbuild_dir cmake --build build_dir
>>
>>I thought 'curl' is sort of at the level of 'tar', in being a useful tool that
>>could be exposed fairly easily in a cmake portable command.
>>Those portable commands are another thing that CMake offers that makes working
>>on Windows a little easier, if you don't already have Cygwin or the like.
>
> curl is already portable.  Are you just trying to avoid installing curl?
>


More information about the CMake mailing list