[cmake-developers] custom_command rebuild output file when depend files change?
Robert Goulet
Robert.Goulet at autodesk.com
Mon Jun 1 14:03:04 EDT 2015
> Are these absolute paths?
Yes. All absolute file paths.
> Where is the output file referenced? It needs to be in a target somewhere.
Forgot to mention, we also do this after:
set_source_files_properties(${OUTPUT_FILE} PROPERTIES GENERATED 1)
list(APPEND SOURCE_FILES ${OUTPUT_FILE})
[...]
add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com]
Sent: Monday, June 1, 2015 1:33 PM
To: Robert Goulet
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] custom_command rebuild output file when depend files change?
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