[CMake] ExternalProject_Add, static library, Ninja generator

Charles Nicholson charles.nicholson at gmail.com
Thu Apr 2 10:05:28 EDT 2015


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?

Thanks again,
Charles

On Wed, Apr 1, 2015 at 11:42 PM, Nils Gladitz <nilsgladitz at gmail.com> wrote:

> On 04/02/2015 07:15 AM, Charles Nicholson wrote:
>
>  I'm assuming that I'm not correctly expressing the dependencies. Would
>> anyone mind taking a quick look? I'd really appreciate it!
>>
>
> Try adding the following to your ExternalProject_Add call:
>   BUILD_BYPRODUCTS ${HIDAPI_ROOT}/bin/lib/libhidapi.a
>
> This is required so that the ninja generator knows which target produces
> the named output.
>
> Nils
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150402/5a5fc884/attachment-0001.html>


More information about the CMake mailing list