From b773eeee27ead031b18a141ddeea2ab9972f0d33 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Thu, 24 Oct 2024 19:34:55 +0200 Subject: [PATCH] CMake: Warn that not all WASM tests might build without threads MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I89971db45f30cebcfb122909ab2434a55b75e2a0 Reviewed-by: Morten Johan Sørvig (cherry picked from commit d7ea0ea95f9e3663c856b3c7dd515447f4d65b91) Reviewed-by: Qt Cherry-pick Bot --- configure.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.cmake b/configure.cmake index 8f87a3ff6ea..75577a5be46 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1466,6 +1466,11 @@ qt_configure_add_report_entry( MESSAGE "You should use the recommended Emscripten version ${QT_EMCC_RECOMMENDED_VERSION} with this Qt. You have ${EMCC_VERSION}." CONDITION WASM AND NOT ${EMCC_VERSION} MATCHES ${QT_EMCC_RECOMMENDED_VERSION} ) +qt_configure_add_report_entry( + TYPE WARNING + MESSAGE "Some tests might fail to build when targeting WASM without -feature-thread." + CONDITION WASM AND QT_BUILD_TESTS AND NOT QT_FEATURE_thread +) qt_configure_add_report_entry( TYPE ERROR MESSAGE "Building Qt with C++20 is not supported with MSVC 2019."