[CMake] Transitive Link Dependencies

Kevin Fitch kfitch42 at gmail.com
Wed Jul 14 08:38:55 EDT 2010


I have found a situation where transitive link dependencies don't seem to
work the way I would expect. I have a library A that depends on B. e.g.

target_link_libraries(A B)
# and elsewhere we have ...
target_link_libraries(foo A)
#then B gets linked into foo as expected
#But, if I try to be more explicit in saying I want the static version of
A...
target_link_libraries(bar A.a)
# B does not get linked into bar ... :(

Is this known/expected behavior, or is it a bug?

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100714/86569ac5/attachment.htm>


More information about the CMake mailing list