[CMake] LINK_PRIVATE and install(EXPORT behavior
Stephen Kelly
steveire at gmail.com
Tue Jan 8 13:29:50 EST 2013
Gregoire Aujay wrote:
> Hello,
>
> I am using cmake 2.8.10.2 on windows.
> I want a library A to link to a 3rdParty library B. I thought that using
> LINK_PRIVATE version of the target_link_libraries function should avoid B
> to be in the link interface of A. But if I export A, B's full path is in
> IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG.
>
> I know that if I declare B as an imported library I will not have B's full
> path in IMPORTED_LINK_INTERFACE_LIBRARIES_DEBUG but only "B" which might
> be ok. But still I think that the PRIVATE_LINK should totally remove B
> from A's link interface.
>
> Is this the correct behavior?
>
It works for me. Please provide a testcase.
Thanks,
Steve.
More information about the CMake
mailing list