[CMake] ExternalProject_Add, static library, Ninja generator

Charles Nicholson charles.nicholson at gmail.com
Thu Apr 2 10:20:21 EDT 2015


I see now; thank you for the explanation.

Best,
Charles

On Thu, Apr 2, 2015, 7:17 AM Nils Gladitz <nilsgladitz at gmail.com> wrote:

> On 04/02/2015 04:05 PM, Charles Nicholson wrote:
> > Thanks for the quick response, Nils, that fixed it!
> >
> > I'm curious, though, why wasn't simply marking my lib as depending on
> > the externalproject_add target enough? I like using the byproducts line
> > since it's more exact and descriptive, but shouldn't it work without
> that?
>
> The target dependency takes care of order which is enough for the other
> generators.
>
> Ninja in particular needs to account for the library file that you
> depend on in the beginning.
>
> Without marking it a byproduct ninja does not know that it is a file
> that will be created later on by one of your targets and assumes it
> missing.
>
> Nils
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150402/fc162c22/attachment.html>


More information about the CMake mailing list