1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
5\page qt-allow-non-utf8-sources.html
6\ingroup cmake-commands-qtcore
8\title qt_allow_non_utf8_sources
9\keyword qt6_allow_non_utf8_sources
11\summary {Prevents forcing source files to be treated as UTF-8 for Windows.}
13\include cmake-find-package-core.qdocinc
20qt_allow_non_utf8_sources(target)
23\versionlessCMakeCommandsNote qt6_allow_non_utf8_sources()
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.
33\sa {qt6_disable_unicode_defines}{qt_disable_unicode_defines()}