cmake: C++17 is mandatory
Change-Id: Ia0f2151d38fec84be31afc76fc380666861d7d80 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
eaa29378b9
commit
5fa2fc61c9
@ -4001,12 +4001,8 @@ function(qt_set_language_standards)
|
||||
## Use the latest standard the compiler supports (same as qt_common.prf)
|
||||
if (QT_FEATURE_cxx2a)
|
||||
set(CMAKE_CXX_STANDARD 20 PARENT_SCOPE)
|
||||
elseif (QT_FEATURE_cxx17)
|
||||
else()
|
||||
set(CMAKE_CXX_STANDARD 17 PARENT_SCOPE)
|
||||
elseif (QT_FEATURE_cxx14)
|
||||
set(CMAKE_CXX_STANDARD 14 PARENT_SCOPE)
|
||||
elseif (QT_FEATURE_cxx11)
|
||||
set(CMAKE_CXX_STANDARD 11 PARENT_SCOPE)
|
||||
endif()
|
||||
|
||||
if (c_std_11 IN_LIST CMAKE_C_COMPILE_FEATURES)
|
||||
|
Loading…
Reference in New Issue
Block a user