From ac039776a63ebc27386865ab6d2628dea44f21c2 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 Pick-to: 6.6 Change-Id: I4ab25960412da17c9509a66c1019c3b2b71ed108 Reviewed-by: Alexandru Croitor Reviewed-by: Morten Johan Sørvig --- 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 63d4090ed6..147c02e36d 100644 --- a/src/corelib/Qt6WasmMacros.cmake +++ b/src/corelib/Qt6WasmMacros.cmake @@ -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"