[cmake-developers] Trying to access variable...

Brad King brad.king at kitware.com
Fri May 1 13:25:54 EDT 2015


On 05/01/2015 01:16 PM, Robert Goulet wrote:
> CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD
> CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD_DEBUG
> CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD_RELEASE
> 
> I will have to manually code this behavior?

Yes.  However, since many of the existing FOO and FOO_<CONFIG>
settings were created we've gained generator expressions.
One could consider having just

 CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD

and evaluate generator expressions son someone could write

 set(CMAKE_INCLUDE_INSTALL_TO_DEFAULT_BUILD $<CONFIG:Release>)

Look for uses of cmCompiledGeneratorExpression to see how
they work.

-Brad



More information about the cmake-developers mailing list