If versionless commands are disabled, use
qt6_disable_unicode_defines() instead. It supports the same set of arguments as this command.
In Qt 6, the
_UNICODE compiler definitions are set by default for targets that link against Qt modules. This is in line with the qmake behavior, but it is a change compared to the CMake API behavior in Qt 5. Calling
qt_disable_unicode_defines() on a
target prevents these compiler definitions from being automatically set.
See also qt_allow_non_utf8_sources().
© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.