diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-11 14:44:12 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-12 11:41:32 +0100 |
commit | 5804473578b87f8a674eb230ee059851f6a7aaaa (patch) | |
tree | ee0059a6129415001a62da60a98580c0d6a60d68 /cmake/QtBaseGlobalTargets.cmake | |
parent | d2419b0d8c449bc60bc7abad3dab129dd4e8a2d0 (diff) |
CMake: Propagate minimum required C++ standard to consumers of Qt
Aka the version of C++ that needs to be supported when compiling
applications that use Qt headers (C++17 at the moment).
Change-Id: I64dec297e8329f31b1d9864f216a95782049ed06
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
-rw-r--r-- | cmake/QtBaseGlobalTargets.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake index 32f0fa8c5f..6e047f59ca 100644 --- a/cmake/QtBaseGlobalTargets.cmake +++ b/cmake/QtBaseGlobalTargets.cmake @@ -200,6 +200,10 @@ target_include_directories(GlobalConfigPrivate INTERFACE ) add_library(Qt::GlobalConfigPrivate ALIAS GlobalConfigPrivate) +# Propagate minimum C++ 17 via Platform to Qt consumers (apps), after the global features +# are computed. +qt_set_language_standards_interface_compile_features(Platform) + # defines PlatformCommonInternal PlatformModuleInternal PlatformPluginInternal PlatformToolInternal include(QtInternalTargets) |