[eigen3] Fix long path issue in UWP (#6136)

This commit is contained in:
LarryIII 2019-04-18 11:33:28 -07:00 committed by Victor Romero
parent 5285f8dc4a
commit 3667328354
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,3 @@
Source: eigen3
Version: 3.3.7
Version: 3.3.7-1
Description: C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.

View File

@ -1,5 +1,12 @@
include(vcpkg_common_functions)
string(LENGTH "${CURRENT_BUILDTREES_DIR}" BUILDTREES_PATH_LENGTH)
if(BUILDTREES_PATH_LENGTH GREATER 37 AND CMAKE_HOST_WIN32)
message(WARNING "eigen3'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()
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO eigenteam/eigen-git-mirror