[CMake] External Packages?

Steven Stallion sstallion at gmail.com
Tue Apr 7 16:10:32 EDT 2015


(Apologies for the self-reply)

s/CMAKE_CURRENT_BUILD_DIR/CMAKE_CURRENT_BINARY_DIR/

On Tue, Apr 7, 2015 at 12:59 PM, Steven Stallion <sstallion at gmail.com>
wrote:

> All,
>
> I'm currently working on a fairly large project that requires a number of
> external tools be installed. I've been playing with the idea of having
> CMake download and install these packages prior to building the project. I
> have something that works using a combination of custom modules and
> external projects, but I'm not quite satisfied.
>
> After trolling through the find_package documentation, I'm tempted to
> write a module that will download and install a CPack package hosted on an
> HTTP server. This is somewhat similar to the approach that neovim has
> taken, however I'd like to use the user package registry rather than
> CMAKE_CURRENT_BUILD_DIR; having some persistence would make life a bit
> better with multiple clones.
>
> I'm surprised that CMake doesn't have support for something like this
> already - does this ring a bell to anyone? If not, I'm tempted to put
> together an ExternalPackage module that would encapsulate this behavior,
> which should dovetail nicely with find_package and friends.
>
> Thoughts?
>
> Steve
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150407/556996f1/attachment.html>


More information about the CMake mailing list