diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-12 14:57:23 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-05-15 11:47:09 +0200 |
commit | 0cdcbb40a1f7fe0288698898027717959f4fbee1 (patch) | |
tree | c8f69d9d90a30f388f70e08b44eac960ea4f5b25 /cmake/QtBaseGlobalTargets.cmake | |
parent | d5cb44cd3a2169d7c479d1f53d69544b9109f003 (diff) |
CMake: Enable default usage of utf8 sources for Qt consumers
And enable the same default when building Qt itself (it's implicit).
Allow opting out on a target-by-target basis, by using the public
qt_disable_utf8_sources() API call.
Change-Id: Ifc19a744d57b96b1c74a6926a0c6628c2a820464
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtBaseGlobalTargets.cmake')
-rw-r--r-- | cmake/QtBaseGlobalTargets.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/QtBaseGlobalTargets.cmake b/cmake/QtBaseGlobalTargets.cmake index d00d536194..e5006f0e20 100644 --- a/cmake/QtBaseGlobalTargets.cmake +++ b/cmake/QtBaseGlobalTargets.cmake @@ -271,6 +271,9 @@ add_library(Qt::GlobalConfigPrivate ALIAS GlobalConfigPrivate) # are computed. qt_set_language_standards_interface_compile_features(Platform) +# By default enable utf8 sources for both Qt and Qt consumers. Can be opted out. +qt_enable_utf8_sources(Platform) + # defines PlatformCommonInternal PlatformModuleInternal PlatformPluginInternal PlatformToolInternal include(QtInternalTargets) |