Windows에서 정션 포인트 사용
Windows에서 프로젝트 경로가 길면 빌드가 실패할 수 있습니다.
이러한 문제를 극복하려면
- 짧은 절대 경로로 소스 디렉터리 이름을 사용하세요. 예를 들어
C:\Users\My Name\Projects대신C:\dev을 사용합니다. - 짧은 빌드 디렉터리 경로를 사용합니다.
- CMake에 Ninja 생성기를 사용합니다.
- Windows에서 소스 및 빌드 디렉터리에 정션 포인트를 사용합니다.
정션 포인트
정션 포인트에서 디렉터리는 컴퓨터의 다른 디렉터리에 대한 별칭 역할을 합니다.
CMake 구성, 빌드 및 설치 작업에 정션 포인트를 사용하려면 Preferences > CMake > General 로 이동하여 Use junctions for CMake configuration and build operations 을 선택합니다.

빌드 시스템은 정션 포인트를 통해 프로젝트를 구성, 컴파일 및 설치하므로 명령줄 명령이 더 짧아집니다.
환경 변수 설정
Qt Creator 에 정션 포인트를 저장합니다 C:\ProgramData\QtCreator\Links. 다른 경로를 사용하려면 QTC_CMAKE_JUNCTIONS_DIR 환경 변수의 값으로 설정합니다.
QTC_CMAKE_JUNCTIONS_HASH_LENGTH 환경 변수를 설정하여 MD5 해시 키 길이를 기본 길이 값인 32보다 짧게 합니다.
방법도참조하세요 :CMake로 빌드하기.
Copyright © The Qt Company Ltd. and other contributors. 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.