summaryrefslogtreecommitdiffstats
path: root/qt_cmdline.cmake
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-02-09 13:12:09 +0100
committerKai Köhne <kai.koehne@qt.io>2021-02-10 07:54:06 +0100
commit3c412c93c251862a2791557881f9232fd76fda79 (patch)
tree1096e4230416ad549bd671b5d04ea5936e79e4c4 /qt_cmdline.cmake
parentab907053bd7b4c5acc1ddb9220a708b9244f7b0f (diff)
Update name of c++2a to c++20
Keep the c++2a feature, but make it an alias for compatibility purposes. Pick-to: 6.1 Change-Id: I6f153109be84659806f1b7a57a88a187875166d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'qt_cmdline.cmake')
-rw-r--r--qt_cmdline.cmake18
1 files changed, 9 insertions, 9 deletions
diff --git a/qt_cmdline.cmake b/qt_cmdline.cmake
index 0145cd4a14..10cc67d7ec 100644
--- a/qt_cmdline.cmake
+++ b/qt_cmdline.cmake
@@ -152,20 +152,20 @@ function(qt_commandline_cxxstd arg val nextok)
endif()
if(val MATCHES "(c\\+\\+)?11")
qtConfCommandlineSetInput(c++14 no)
- qtConfCommandlineSetInput(c++1z no)
- qtConfCommandlineSetInput(c++2a no)
+ qtConfCommandlineSetInput(c++17 no)
+ qtConfCommandlineSetInput(c++20 no)
elseif(val MATCHES "(c\\+\\+)?(14|1y)")
qtConfCommandlineSetInput(c++14 yes)
- qtConfCommandlineSetInput(c++1z no)
- qtConfCommandlineSetInput(c++2a no)
+ qtConfCommandlineSetInput(c++17 no)
+ qtConfCommandlineSetInput(c++20 no)
elseif(val MATCHES "(c\\+\\+)?(17|1z)")
qtConfCommandlineSetInput(c++14 yes)
- qtConfCommandlineSetInput(c++1z yes)
- qtConfCommandlineSetInput(c++2a no)
- elseif(val MATCHES "(c\\+\\+)?2a")
+ qtConfCommandlineSetInput(c++17 yes)
+ qtConfCommandlineSetInput(c++20 no)
+ elseif(val MATCHES "(c\\+\\+)?(20|2a)")
qtConfCommandlineSetInput(c++14 yes)
- qtConfCommandlineSetInput(c++1z yes)
- qtConfCommandlineSetInput(c++2a yes)
+ qtConfCommandlineSetInput(c++17 yes)
+ qtConfCommandlineSetInput(c++20 yes)
else()
qtConfAddError("Invalid argument '${val}' to command line parameter '${arg}'")
endif()