Changeset - r28455:325c07e62da0
[Not reviewed]
master
0 1 0
Michael Lutz - 12 months ago 2023-12-17 21:13:49
michi@icosahedron.de
Codechange: [CMake] Use timestamps to copy non-generated baseset files.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
media/baseset/CMakeLists.txt
Show inline comments
 
@@ -64,13 +64,13 @@ endforeach()
 

	
 
# Walk over all the other baseset files, and generate a command to copy them
 
foreach(BASESET_OTHER_SOURCE_FILE IN LISTS BASESET_OTHER_SOURCE_FILES)
 
    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}
 
            MAIN_DEPENDENCY ${BASESET_OTHER_SOURCE_FILE}
 
            COMMENT "Copying ${BASESET_OTHER_SOURCE_FILE_NAME} baseset file"
 
    )
0 comments (0 inline, 0 general)