diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2024-03-18 08:57:49 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2024-03-27 06:55:35 +0100 |
commit | 52c7357fced9f10fafba68344781ceab48fc1b16 (patch) | |
tree | 6b548f16bd86b9f07136480b47b3dfe21bc1821d | |
parent | c1ce543fb22a21ff7e5c9d071803ab621c8c468b (diff) |
CMake: Bail out on configuration with FEATURE_cxx20 and MSVC 2019
45fd36f1480a6229879a4e59236ffa1d1d22dfbf triggers internal
compiler errors in MSVC2019 when configuring Qt with -c++std c++20. Bail
out early when trying to configure a C++20 build with MSVC 2019.
Change-Id: Ic0a49c43e08d3d46221c5c060c0b92628898e26e
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 942c359c0d..1e144ac37c 100644 --- a/configure.cmake +++ b/configure.cmake @@ -1407,6 +1407,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 ERROR + MESSAGE "Building Qt with C++20 is not supported with MSVC 2019." + CONDITION QT_FEATURE_cxx20 AND MSVC AND MSVC_VERSION LESS "1930" +) if(WASM) qt_extra_definition("QT_EMCC_VERSION" "\"${EMCC_VERSION}\"" PUBLIC) endif() |