Switched to copy_if_different flag.
This commit is contained in:
@@ -27,7 +27,7 @@ endforeach()
|
||||
# executables which link against it - create a custom command to copy it
|
||||
if(WIN32 AND NOT BUILD_STATIC)
|
||||
add_custom_target(QHttpEngine-copy ALL
|
||||
"${CMAKE_COMMAND}" -E copy "$<TARGET_FILE:QHttpEngine>" "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
"${CMAKE_COMMAND}" -E copy_if_different "$<TARGET_FILE:QHttpEngine>" "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
DEPENDS QHttpEngine
|
||||
)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user