From a83b450dbc06065f2eb2ee82b4cc1c485dce7bba Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Tue, 31 Oct 2023 12:19:22 +0100 Subject: [PATCH] Use configure_file instead of file(COPY MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As mentioned in comments, file(COPY causes rebuilding of the file every time the project is re-configured, so, we replace it with configure_file to avoid that. Amend 1dcc14f2d08364411ff8f6dcd9e00277bcadef5d Task-number: QTBUG-118191 Change-Id: I893b36fa26168f460f3ab1320a3194561c66e5df Reviewed-by: Tor Arne Vestbø --- cmake/QtPublicAppleHelpers.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/QtPublicAppleHelpers.cmake b/cmake/QtPublicAppleHelpers.cmake index e947f9555c..fff797b689 100644 --- a/cmake/QtPublicAppleHelpers.cmake +++ b/cmake/QtPublicAppleHelpers.cmake @@ -61,7 +61,7 @@ function(_qt_internal_handle_ios_launch_screen target) file(MAKE_DIRECTORY "${launch_screen_out_dir}") - file(COPY "${launch_screen_in_path}" DESTINATION "${launch_screen_out_path}") + configure_file("${launch_screen_in_path}" "${launch_screen_out_path}" COPYONLY) set(final_launch_screen_path "${launch_screen_out_path}") else()