From c2869caa7ec737b30d7769649b770dd6000b071c Mon Sep 17 00:00:00 2001 From: Cajus Pollmeier Date: Wed, 11 Oct 2023 10:11:45 +0200 Subject: [PATCH] Avoid ${...} to be replaced by configure_file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Morten Johan Sørvig (cherry picked from commit ac039776a63ebc27386865ab6d2628dea44f21c2) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/Qt6WasmMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/Qt6WasmMacros.cmake b/src/corelib/Qt6WasmMacros.cmake index 3ec4ed58582..c2e691328e7 100644 --- a/src/corelib/Qt6WasmMacros.cmake +++ b/src/corelib/Qt6WasmMacros.cmake @@ -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"