Skip to content

Commit

Permalink
[qt5] Add check for long path.
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0219-msft committed Jun 6, 2017
1 parent 79fcaaf commit 7b4d83c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ports/qt5/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 7b4d83c

Please sign in to comment.