[CMake] Creating dependencies between static imported targets.

Yaron Cohen-Tal yaronct at gmail.com
Sun Aug 21 03:24:10 EDT 2016


Hi,

Using ""target_link_libraries" between static libraries is allowed, however
doing it with static imported targets fails with:

"Cannot specify link libraries for target "<target name>" which is not
built by this project.

However, this is necessary in order to define dependencies between the
targets, which is necessary when solving dependencies (when those targets
are eventually linked into e.g. an executable built by the project). How,
then, can I create dependencies between imported targets?

Thanx,
Yaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160821/9f176529/attachment.html>


More information about the CMake mailing list