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

iosif neitzke iosif.neitzke+cmake at gmail.com
Fri Dec 18 15:42:13 EST 2015


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.


More information about the CMake mailing list