[cmake-developers] Adding Ninja file dependency to ExternalProject target

Brad King brad.king at kitware.com
Mon Nov 9 09:29:03 EST 2015


On 11/06/2015 05:16 PM, Chris Bieneman wrote:
> external project will have a file-dependency on clang?

>From a quick check it looks like ExternalProject has no interface
to directly add file-level dependencies to the builtin configure step.
That should be corrected if anyone is interested in working on it.

Meanwhile you should be able to work around the limitation by
using ExternalProject_Add_Step to insert your own step on which
the 'configure' step depends, and then list the needed file-level
dependencies with the DEPENDS option.  Use $<TARGET_FILE:...> to
refer to the clang executable file if needed.

-Brad



More information about the cmake-developers mailing list