我有一个 CMakeLists.txt,我在其中按特定顺序复制文件,但执行顺序似乎是随机的:
#First Installation
install(DIRECTORY ${SIT_AW_FIRST_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR})
#Second Installation that should overwrite a subset of files
install(DIRECTORY ${SIT_AW_SECOND_WORKSPACE_DIR}/ DESTINATION ${WS_DESTINATION_DIR})
Output :
-- Installing: /opt/FOO/share/baz/xml/Login.xml
-- Up-to-date: /opt/FOO/share/baz/xml/Login.xml
第二个文件不会覆盖第一个文件,因为它们具有相同的时间戳和相同的名称,但它们的大小不同。有没有办法强制复制?