Use configure_file instead of file(COPY

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 1dcc14f2d0

Task-number: QTBUG-118191
Change-Id: I893b36fa26168f460f3ab1320a3194561c66e5df
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
Amir Masoud Abdol 2023-10-31 12:19:22 +01:00
parent e45937c22d
commit a83b450dbc

View File

@ -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()