diff options
| author | LarryIII <33021067+LarryIII@users.noreply.github.com> | 2019-04-18 11:33:28 -0700 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-04-18 11:33:28 -0700 |
| commit | 3667328354e81997411801944bb9aedd326e0326 (patch) | |
| tree | 8fdc5e6d3a67c2f5b12ec24424e7506b6adabff2 | |
| parent | 5285f8dc4a11e9ae0ee1a7fe674eaf39a2876cd1 (diff) | |
| download | vcpkg-3667328354e81997411801944bb9aedd326e0326.tar.gz vcpkg-3667328354e81997411801944bb9aedd326e0326.zip | |
[eigen3] Fix long path issue in UWP (#6136)
| -rw-r--r-- | ports/eigen3/CONTROL | 2 | ||||
| -rw-r--r-- | ports/eigen3/portfile.cmake | 7 |
2 files changed, 8 insertions, 1 deletions
diff --git a/ports/eigen3/CONTROL b/ports/eigen3/CONTROL index 2586620a0..3993a35f0 100644 --- a/ports/eigen3/CONTROL +++ b/ports/eigen3/CONTROL @@ -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. diff --git a/ports/eigen3/portfile.cmake b/ports/eigen3/portfile.cmake index 9ba268350..31806319f 100644 --- a/ports/eigen3/portfile.cmake +++ b/ports/eigen3/portfile.cmake @@ -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 |
