[cmake-developers] CMake generates Makefiles that don't parallelize as much as they could.

Nick Overdijk nick at astrant.net
Wed Jul 30 05:31:14 EDT 2014


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.king at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20140730/b79aa74c/attachment-0002.html>


More information about the cmake-developers mailing list