CMake: Warn that not all WASM tests might build without threads

Pick-to: 6.8
Change-Id: I89971db45f30cebcfb122909ab2434a55b75e2a0
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
This commit is contained in:
Alexandru Croitor 2024-10-24 19:34:55 +02:00
parent 492deefc17
commit d7ea0ea95f

View File

@ -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."