Here's the sample code:
https://github.com/NickNick/cmake-interface-includes/commits/master . The
second commit breaks the build. I sort of understand why it does, but that
means I can't use the "INTERFACE"-trick, so to say, even with static
libraries.

Thanks for linking the other bug.


On Mon, Jul 28, 2014 at 4:19 PM, Brad King <brad.k...@kitware.com> wrote:

> On 07/24/2014 05:47 PM, Nick Overdijk wrote:
> > I'm using target_include_directories of A to get some include
> > directories into B well, so I can't use
> > target_link_libraries(A INTERFACE B),
>
> Can you clarify this with sample code please?
>
> > and I can't seem to use the OBJECT-way neither since B's sources
> > won't compile without A's INTERFACE_INCLUDE_DIRECTORIES...
>
> Usage requirements were designed with target_link_libraries as
> the main way to propagate them, but OBJECT libraries do not allow
> use with target_link_libraries.  This is an open problem with the
> design of the two features.  See also discussion here:
>
>  http://www.cmake.org/Bug/view.php?id=14970
>
> -Brad
>
>
-- 

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-developers

Reply via email to