[cmake-developers] Policy for INTERFACE_LINK_LIBRARIES
Brad King
brad.king at kitware.com
Fri Nov 30 13:59:28 EST 2012
On 11/30/2012 01:31 PM, Stephen Kelly wrote:
> Brad King wrote:
>>
>> Right. The tll() call specifies the "link implementation" which then
>> becomes the link interface when exported.
>
> Yes, and later when my other topic is merged that will work for the 'new'
> link interface for static libraries too.
Okay, thanks.
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.
-Brad
More information about the cmake-developers
mailing list