On 03/14/2013 12:43 AM, James Bigler wrote:
> I'm not sure what the expected behavior is supposed to be

IMPORTED_LINK_DEPENDENT_LIBRARIES is not about transitive linking.
That is IMPORTED_LINK_INTERFACE_LIBRARIES.

The former is only for implementation dependencies of a shared
library that are not in its link interface.  It is needed to
construct options like -rpath-link so that the linker can find
runtime dependencies of a shared library when linking it into
another target.

This is clearly described in the docs:

 
http://www.cmake.org/cmake/help/v2.8.10/cmake.html#prop_tgt:IMPORTED_LINK_DEPENDENT_LIBRARIES

If you want transitive linking on imported targets then the right
property is IMPORTED_LINK_INTERFACE_LIBRARIES no matter the type
of library.

-Brad
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to