[cmake-developers] IMPORTED targets for some Find modules
Stephen Kelly
steveire at gmail.com
Mon Jun 30 04:06:29 EDT 2014
Stephen Kelly wrote:
>> If you build a library using foo.cpp it will contain the glVertex2i
>> symbol even though its headers wont include it. Likewise a consumer of
>> that library does not need to have the headers,
>
>> but will need to link against a library containing the symbol.
>
> Ah, I guess we're talking about static libraries here.
Given this, you might consider wrapping the dependencies in $<LINK_ONLY> in
the INTERFACE. That would match the behavior of cmExportFileGenerator I
think.
Thanks,
Steve.
More information about the cmake-developers
mailing list