Am 21.08.2016 um 09:24 schrieb Yaron Cohen-Tal:
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?
INTERFACE_LINK_LIBRARIES is what you're looking for. See also https://cmake.org/cmake/help/v3.5/manual/cmake-buildsystem.7.html#imported-targets for more information.

HTH,
Christian

--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to