QT_DISABLE_UNCODE_DEFINES
일부 유니코드 관련 컴파일러 정의가 대상에 자동으로 설정되는 것을 방지합니다.
이 명령은 Qt6
패키지의 Core
컴포넌트에 정의되어 있으며, 다음과 같이 로드할 수 있습니다:
find_package(Qt6 REQUIRED COMPONENTS Core)
이 명령은 Qt 6.2에 도입되었습니다.
개요
qt_disable_unicode_defines(target)
버전 없는 명령을 사용할 수 없는 경우 qt6_disable_unicode_defines()
을 대신 사용합니다. 이 명령은 이 명령과 동일한 인수 집합을 지원합니다.
설명
Qt 6에서는 Qt 모듈에 링크하는 타겟에 대해 UNICODE
및 _UNICODE
컴파일러 정의가 기본적으로 설정되어 있습니다. 이는 qmake 동작과 일치하지만 Qt 5의 CMake API 동작과 비교하면 변경된 사항입니다. target
에서 qt_disable_unicode_defines()
을 호출하면 이러한 컴파일러 정의가 자동으로 설정되는 것을 방지할 수 있습니다.
qt_allow_non_utf8_sources()도 참조하십시오 .
© 2025 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.