[cmake-developers] automatically download library
Brad King
brad.king at kitware.com
Thu Oct 8 11:23:43 EDT 2015
On 10/08/2015 11:06 AM, Marsel Galimullin wrote:
> The idea is that CMake has possibility to contact with package managers
> for download necessary libraries.
> If “find_package” can’t find a library, it need to call apt-get install.
> Example:
> auto_downland(apt-get)
> find_package (Boost COMPONENTS system thread REQUIRED)
This does not provide enough information to know what package to install.
This problem is not in scope for a build system. Another tool should
be used to install dependencies ahead of time before running CMake.
The source tree could come with some kind of dependency spec file for
such a tool to use but this would be independent of the build system.
-Brad
More information about the cmake-developers
mailing list