# HG changeset patch # User Michael Lutz # Date 2023-12-17 21:13:49 # Node ID 325c07e62da0bd70301dbc1512f0000324cc236e # Parent 29a6b80a530c26b8aae6803f7fffb3b49ee61726 Codechange: [CMake] Use timestamps to copy non-generated baseset files. diff --git a/media/baseset/CMakeLists.txt b/media/baseset/CMakeLists.txt --- a/media/baseset/CMakeLists.txt +++ b/media/baseset/CMakeLists.txt @@ -67,7 +67,7 @@ foreach(BASESET_OTHER_SOURCE_FILE IN LIS get_filename_component(BASESET_OTHER_SOURCE_FILE_NAME "${BASESET_OTHER_SOURCE_FILE}" NAME) set(BASESET_OTHER_BINARY_FILE "${CMAKE_BINARY_DIR}/baseset/${BASESET_OTHER_SOURCE_FILE_NAME}") - add_custom_command(OUTPUT ${BASESET_OTHER_BINARY_FILE} + add_custom_command_timestamp(OUTPUT ${BASESET_OTHER_BINARY_FILE} COMMAND ${CMAKE_COMMAND} -E copy ${BASESET_OTHER_SOURCE_FILE} ${BASESET_OTHER_BINARY_FILE}