From d7ea0ea95f9e3663c856b3c7dd515447f4d65b91 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 Pick-to: 6.8 Change-Id: I89971db45f30cebcfb122909ab2434a55b75e2a0 Reviewed-by: Morten Johan Sørvig --- configure.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/configure.cmake b/configure.cmake index 08202a703d0..d6fddad6a58 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1456,6 +1456,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."