From 09e2d6306eee1936b312c423ec93df13e5452be4 Mon Sep 17 00:00:00 2001 From: Cristian Adam Date: Wed, 6 Jan 2021 13:11:24 +0100 Subject: [PATCH] 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 --- src/libs/qtcreatorcdbext/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/qtcreatorcdbext/CMakeLists.txt b/src/libs/qtcreatorcdbext/CMakeLists.txt index 41769a2984c..ddffac17e3f 100644 --- a/src/libs/qtcreatorcdbext/CMakeLists.txt +++ b/src/libs/qtcreatorcdbext/CMakeLists.txt @@ -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()