microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
23.17k stars 6.38k forks source link

[qt5] Warns of long path when path is as long as suggested. #39155

Closed milnak closed 3 months ago

milnak commented 5 months ago

Describe the bug

qt5 warns of long path when path is as long as suggested.

Environment

To Reproduce

  1. ./vcpkg install qt5
  2. See error
Installing 32/36 qt5-quickcontrols2:x64-windows@5.15.14...
Building qt5-quickcontrols2:x64-windows@5.15.14...
CMake Warning at scripts/cmake/vcpkg_buildpath_length_warning.cmake:4 (message):
  qt5-quickcontrols2's buildsystem uses very long paths and may fail on your
  system.

  We recommend moving vcpkg to a short path such as 'C:\src\vcpkg' or using
  the subst command.
Call Stack (most recent call first):
  installed/x64-windows/share/qt5/qt_download_submodule.cmake:13 (vcpkg_buildpath_length_warning)
  installed/x64-windows/share/qt5/qt_submodule_installation.cmake:5 (qt_download_submodule)
  ports/qt5-quickcontrols2/portfile.cmake:2 (qt_submodule_installation)
  scripts/ports.cmake:175 (include)

Expected behavior Should be fine. I put vcpkg into D:\src\vcpkg which is exactly as long as the suggested c:\src\vcpkg

JonLiu1993 commented 5 months ago

You can ignore this warning, it is caused by a limitation of Qt itself. image

github-actions[bot] commented 4 months ago

This is an automated message. Per our repo policy, stale issues get closed if there has been no activity in the past 28 days. The issue will be automatically closed in 14 days. If you wish to keep this issue open, please add a new comment.