[CMake] Adding ext. libs only to one target and not transitively to others
Hendrik Sattler
post at hendrik-sattler.de
Sun Nov 30 13:56:40 EST 2008
Am Saturday 29 November 2008 00:13:26 schrieb Klaus Drechsler:
> How can I prevent cmake from adding 'myextlib' to any other targets? I
> only want it to be added to 'func1' nowhere else.
>
> Or, if this is not possible, how can I propagate the link directory and
> include directory 'up' to the target 'mainapplication'?
>
> Any help on that is highly appreciated.
set the LINK_INTERFACE_LIBRARIES porperty for func1 to "".
HS
More information about the CMake
mailing list