aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLily <47812810+LilyWangL@users.noreply.github.com>2020-11-06 09:30:40 +0800
committerGitHub <noreply@github.com>2020-11-05 17:30:40 -0800
commitf754a3658943106358ade75716f472f30809a76b (patch)
tree37109af0efc56dd71ba52c2aaefcd92165607b04
parentf7b9fc0b3c0a1ec21063ef3670ecf8fa05e70806 (diff)
downloadvcpkg-f754a3658943106358ade75716f472f30809a76b.tar.gz
vcpkg-f754a3658943106358ade75716f472f30809a76b.zip
[eigen3] Fix include path (#13739)
-rw-r--r--ports/eigen3/CONTROL2
-rw-r--r--ports/eigen3/portfile.cmake3
2 files changed, 4 insertions, 1 deletions
diff --git a/ports/eigen3/CONTROL b/ports/eigen3/CONTROL
index 90d0726e2..f1180da66 100644
--- a/ports/eigen3/CONTROL
+++ b/ports/eigen3/CONTROL
@@ -1,5 +1,5 @@
Source: eigen3
Version: 3.3.7
-Port-Version: 7
+Port-Version: 8
Homepage: http://eigen.tuxfamily.org
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 6d72fdc5e..4fc9c7cc3 100644
--- a/ports/eigen3/portfile.cmake
+++ b/ports/eigen3/portfile.cmake
@@ -28,6 +28,9 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets()
vcpkg_fixup_pkgconfig()
+file(GLOB INCLUDES ${CURRENT_PACKAGES_DIR}/include/eigen3/*)
+# Copy the eigen header files to conventional location for user-wide MSBuild integration
+file(COPY ${INCLUDES} DESTINATION ${CURRENT_PACKAGES_DIR}/include)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)