[CMake] ExternalProject_Add, static library, Ninja generator

Nils Gladitz nilsgladitz at gmail.com
Thu Apr 2 02:42:13 EDT 2015

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.


More information about the CMake mailing list