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
Pick-to: 6.6
Change-Id: I4ab25960412da17c9509a66c1019c3b2b71ed108
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
bb10
Cajus Pollmeier 2023-10-11 10:11:45 +02:00
parent 58fd829cdf
commit ac039776a6
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,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"