[CMake] COMPONENTS for export files

Alexander Neundorf a.neundorf-work at gmx.net
Wed Apr 10 12:40:51 EDT 2013


On Wednesday 10 April 2013, Nico Schlömer wrote:
> Sounds pretty good!
> 
> One question remains:
> Suppose I have components A, B, C, where both A and B depend on C.
> The link line that I'd pull in with
> 
> FIND_PACKAGE(Mypackage COMPONENTS A B)
> 
> Would be
> <A libs>, <C libs>, <B libs>, <C libs>
> where all of those could be sets. Is there a way to avoid including
> C's libs twice? (Is that desirable at all?)

Is your question whether it is a problem that in the link command <C libs> 
will appear twice ?
That's fine, no problem at all (for static libs even needed).

Alex


More information about the CMake mailing list