CMake: Use copy_if_different for python dependency files

Using "copy" would always copy the files on build, which is
suboptimal.

Change-Id: I8c80732124a6642acae03220f3d43074cece4526
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Cristian Adam
2021-01-06 13:11:24 +01:00
parent 1a09f816a3
commit 09e2d6306e

View File

@@ -112,7 +112,7 @@ if (_library_enabled)
add_custom_target(copy_python_dll ALL VERBATIM)
add_custom_command(TARGET copy_python_dll POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy ${deployPythonFiles} "${PROJECT_BINARY_DIR}/lib/qtcreatorcdbext${ArchSuffix}/"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${deployPythonFiles} "${PROJECT_BINARY_DIR}/lib/qtcreatorcdbext${ArchSuffix}/"
VERBATIM
)
endif()