Alexander Neundorf wrote:

> Hi,
> 
> I haven't followed the long thread between Brad and Stephen about
> importing and exporting targets closely...
> 
> So, if I understand correctly, in the future the following cmake code
> 
> find_package(Foo)
> 
> add_executable(hello main.cpp)
> 
> target_link_libraries(hello ${Foo_LIBRARIES})
> 
> 
> may also set include directories ?

For reference, here is where the idea of using target_link_libraries for 
that came up:

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3083/focus=3093

(though Clinton later said he liked target_use_targets).

Here's a point where Alex raised a similar concern: 

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/2145/focus=2154

Here's where I changed my mind on whether we should use target_use_targets 
or target_link_libraries:

http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/3615/focus=5111

I'm not sure what has changed since then.

Thanks,

Steve.


--

Powered by www.kitware.com

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

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

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

Reply via email to