[cmake-developers] ExternalProject CMAKE_ARGS and CMAKE_CACHE_ARGS arguments

Brad King brad.king at kitware.com
Wed Oct 22 11:18:55 EDT 2014


On 10/21/2014 10:01 AM, Daniele E. Domenichelli wrote:
> I would like to be able to set some some variables (for example
> CMAKE_BUILD_TYPE) for all the "external project" according to the value
> in the "super-project", but the same time I would like to be able to
> change them (for example change CMAKE_BUILD_TYPE to Debug if I'm
> building in Release mode) for just one external project without changing
> it in all of them, and having to rebuild everything.

How about a new option like "CMAKE_CACHE_DEFAULT_ARGS" for that?

-Brad




More information about the cmake-developers mailing list