[CMake] Is it possible for a dependee to use the dependency LINKER_FLAGS ?
Adrian M Negreanu
groleo at gmail.com
Wed Jul 30 11:51:15 EDT 2014
Hi,
Is it possible to attach a property on a target, and that property
to be used whenever the target is used ?
ex:
add_library(A a.cpp)
somehow_attach_LINK_FLAGS(A "--custom-flags")
# in a different directory
add_executable(E e.cpp)
target_link_libraries(E A)
# ^--- this would do something similiar to
set_target_properties(E PROPERTIES LINK_FLAGS "--custom-flags")
For example, to use A:LINK_FLAGS
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20140730/3ad23773/attachment.html>
More information about the CMake
mailing list