diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2019-10-17 10:14:09 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2019-10-17 19:23:25 +0000 |
commit | 7e7f41e40c39361059ce4693c5e3a5e1ccd6f7e5 (patch) | |
tree | 53add24af9d761f86045646d0d74ac438cc03a98 /CMakeLists.txt | |
parent | 2fa23e46c0b79a065d92a95033bfc3ae10b707cf (diff) |
Pick the latest available C/C++ standard when compiling Qt
This maps the behavior of mkspecs/features/qt_common.prf and enables the
use of C++17 for example in Android, where the toolchain supports it
anyway.
Change-Id: I41f4bdb160a3929e2fb78f36efb1ad5f2ad391a5
Reviewed-by: Qt CMake Build Bot
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 190a39a859..98fe694adc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -35,6 +35,8 @@ include(QtBaseCMakeTesting) ## Targets for global features, etc.: include(QtBaseGlobalTargets) +qt_set_language_standards() + ## Should this Qt be static or dynamically linked? option(BUILD_SHARED_LIBS "Build Qt statically or dynamically" ON) set(QT_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) |