summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtProcessConfigureArgs.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtProcessConfigureArgs.cmake b/cmake/QtProcessConfigureArgs.cmake
index bad7418779..63607ef72a 100644
--- a/cmake/QtProcessConfigureArgs.cmake
+++ b/cmake/QtProcessConfigureArgs.cmake
@@ -134,6 +134,10 @@ while(configure_args)
elseif(arg STREQUAL "-qtnamespace")
list(POP_FRONT configure_args namespace)
push("-DQT_NAMESPACE=${namespace}")
+ elseif(arg STREQUAL "-c++std")
+ list(POP_FRONT configure_args edition)
+ string(REGEX REPLACE "^c\\+\\+" "" edition "${edition}")
+ push("-DCMAKE_CXX_STANDARD=${edition}")
elseif(arg STREQUAL "--")
# Everything after this argument will be passed to CMake verbatim.
push(${configure_args})