forked from qt-creator/qt-creator
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user