[cmake-developers] custom_command rebuild output file when depend files change?

Brad King brad.king at kitware.com
Mon Jun 1 13:33:08 EDT 2015


On 06/01/2015 01:19 PM, Robert Goulet wrote:
> Does CMake custom_command rebuild the output file if the
> dependency files change?

Yes, it should.  This is well tested.

> DEPENDS ${INPUT_FILES}

Are these absolute paths?

> OUTPUT ${OUTPUT_FILE}

Where is the output file referenced?  It needs to be in a target
somewhere.

-Brad



More information about the cmake-developers mailing list