Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qt_allow_non_utf8_sources.qdoc
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qt-allow-non-utf8-sources.html
6\ingroup cmake-commands-qtcore
7
8\title qt_allow_non_utf8_sources
9\keyword qt6_allow_non_utf8_sources
10
11\summary {Prevents forcing source files to be treated as UTF-8 for Windows.}
12
13\include cmake-find-package-core.qdocinc
14
15\cmakecommandsince 6.0
16
17\section1 Synopsis
18
19\badcode
20qt_allow_non_utf8_sources(target)
21\endcode
22
23\versionlessCMakeCommandsNote qt6_allow_non_utf8_sources()
24
25\section1 Description
26
27When building with some compilers for Windows, targets that link to a Qt library
28will use flags that force the compiler to treat its source files as UTF-8. This
29is currently implemented for Visual Studio and Intel compilers. You can disable
30this behavior on a per-target basis by calling \c{qt_allow_non_utf8_sources()}
31and passing the target as the argument.
32
33\sa {qt6_disable_unicode_defines}{qt_disable_unicode_defines()}
34*/