Use copy_if_different to avoid build errors

This commit is contained in:
Magne Sjaastad
2024-10-13 14:31:46 +02:00
parent 4719090b5f
commit 8d42b321d3

View File

@@ -210,8 +210,10 @@ if(MSVC)
add_custom_command(
TARGET ResInsight-tests
POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_RUNTIME_DLLS:ResInsight-tests>
$<TARGET_FILE_DIR:ResInsight-tests>
COMMAND
${CMAKE_COMMAND} -E copy_if_different
$<TARGET_RUNTIME_DLLS:ResInsight-tests>
$<TARGET_FILE_DIR:ResInsight-tests>
COMMAND_EXPAND_LISTS
)