qt_disable_unicode_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()도 참조하십시오 .
© 2026 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.