[cmake-developers] custom_command rebuild output file when depend files change?
Brad King
brad.king at kitware.com
Mon Jun 1 14:10:35 EDT 2015
On 06/01/2015 02:03 PM, Robert Goulet wrote:
> Forgot to mention, we also do this after:
> set_source_files_properties(${OUTPUT_FILE} PROPERTIES GENERATED 1)
That shouldn't be necessary. add_custom_command does that for you.
> list(APPEND SOURCE_FILES ${OUTPUT_FILE})
> [...]
> add_library(${PROJECT_NAME} STATIC ${SOURCE_FILES})
Please post a complete example.
Thanks,
-Brad
More information about the cmake-developers
mailing list