aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-06-06 11:39:00 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-06-06 11:39:00 -0700
commit7b4d83c444b0e7fee241ed293614efca17c67201 (patch)
tree7b0d88e8375916b41a3611cf08b8890e54f79c4b
parent79fcaafd0c486875c34f0e39356b3c95406cfd2d (diff)
downloadvcpkg-7b4d83c444b0e7fee241ed293614efca17c67201.tar.gz
vcpkg-7b4d83c444b0e7fee241ed293614efca17c67201.zip
[qt5] Add check for long path.
-rw-r--r--ports/qt5/portfile.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/ports/qt5/portfile.cmake b/ports/qt5/portfile.cmake
index ee871b155..0424ba2e5 100644
--- a/ports/qt5/portfile.cmake
+++ b/ports/qt5/portfile.cmake
@@ -1,6 +1,12 @@
-include(${CMAKE_TRIPLET_FILE})
include(vcpkg_common_functions)
+string(LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH)
+if(BUILDTREES_PATH_LENGTH GREATER 27)
+ message(WARNING "Qt5's buildsystem uses very long paths and may fail on your system.\n"
+ "We recommend moving vcpkg to a short path such as 'C:\\src\\vcpkg' or using the subst command."
+ )
+endif()
+
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
include(configure_qt)
include(install_qt)