[qt5] Add check for long path.

This commit is contained in:
Robert Schumacher 2017-06-06 11:39:00 -07:00
parent 79fcaafd0c
commit 7b4d83c444

View File

@ -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)