Michael Jackson wrote:


add_library(a ...)
target_link_library(a b c)

add_executable(foo ...)
target_link_libraries(foo a)

This will cause foo to link to a b c.

With CMake 2.6.2 you can stop this from happening with a target property:

http://www.cmake.org/cmake/help/cmake2.6docs.html#prop_tgt:LINK_INTERFACE_LIBRARIES

-Bill

And just to be clear this will work on all platforms, all compilers?

Yes, it should.

-Bill
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to