[cmake-developers] Policy for INTERFACE_LINK_LIBRARIES
Brad King
brad.king at kitware.com
Fri Nov 30 14:46:46 EST 2012
On 11/30/2012 01:59 PM, Brad King wrote:
> I noticed that generatorIface hard-codes "$<NOT:$<CONFIG:Debug>>"
> instead of looking up the list of DEBUG configs:
>
> // Get the list of configurations considered to be DEBUG.
> std::vector<std::string> const& debugConfigs =
> this->Makefile->GetCMakeInstance()->GetDebugConfigs();
>
> Perhaps the simplest solution is to add a new generator expression
> such as $<CONFIG_DEBUG> that evaluates to 1 or 0 depending on
> whether the configuration is considered a debug config.
Another detail. The cmTargetCheckLINK_INTERFACE_LIBRARIES check
should be performed for the INTERFACE_LINK_LIBRARIES property.
We must ensure that the "debug" and "optimized" keywords never
have any meaning outside arguments to tll().
Thanks,
-Brad
More information about the cmake-developers
mailing list