Avoid ${...} to be replaced by configure_file

When running configure_file without @ONLY, the exit code details get
stripped out by CMake. This leads to an empty application exit status
shown on the boiler plate HTML.

Fixes: QTBUG-117997
Change-Id: I4ab25960412da17c9509a66c1019c3b2b71ed108
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
(cherry picked from commit ac039776a63ebc27386865ab6d2628dea44f21c2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Cajus Pollmeier 2023-10-11 10:11:45 +02:00 committed by Qt Cherry-pick Bot
parent 5363ac342d
commit c2869caa7e

View File

@ -61,7 +61,7 @@ function(_qt_internal_wasm_add_target_helpers target)
endif()
configure_file("${WASM_BUILD_DIR}/plugins/platforms/wasm_shell.html"
"${_target_directory}/${_target_output_name}.html")
"${_target_directory}/${_target_output_name}.html" @ONLY)
configure_file("${WASM_BUILD_DIR}/plugins/platforms/qtloader.js"
${_target_directory}/qtloader.js COPYONLY)
configure_file("${WASM_BUILD_DIR}/plugins/platforms/qtlogo.svg"