diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-04-13 09:01:48 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2022-04-14 09:28:06 +0200 |
commit | 252e3a1526dc01c5e5024a4ff4f4fb2e87fbc3d2 (patch) | |
tree | 24a16254dceb1231fa399f92d19903c1fa97b7bc /configure.cmake | |
parent | fbe6f198531efce3d1d02c8846347a0c3ef07a72 (diff) |
CMake: Add rudimentary c++2b feature
This fixes the "Could not find feature c++2b." error when building a Qt
module with qmake.
The feature is OFF by default for now.
This amends commit b5ed3cb7baeb6d77c375134719ee04ffcc211b9f.
Pick-to: 6.2 6.3
Change-Id: Ibabe3ce29275699e66ab1f32d19d583d6bcede9e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'configure.cmake')
-rw-r--r-- | configure.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.cmake b/configure.cmake index 30d9551b6b..ffd79c7c3a 100644 --- a/configure.cmake +++ b/configure.cmake @@ -641,6 +641,11 @@ qt_feature("c++2a" PUBLIC CONDITION QT_FEATURE_cxx20 ) qt_feature_config("c++2a" QMAKE_PUBLIC_QT_CONFIG) +qt_feature("c++2b" PUBLIC + LABEL "C++2b" + AUTODETECT OFF +) +qt_feature_config("c++2b" QMAKE_PUBLIC_QT_CONFIG) qt_feature("c89" LABEL "C89" ) |