diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2017-06-28 19:21:55 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2017-06-28 19:21:55 -0700 |
| commit | 6aae6ca3c0384d23c901e80cfbd46ed32a29321d (patch) | |
| tree | 54967bd5036341f9d28d8def2bebac2e42b2632f | |
| parent | 9c2c350c89fd9a850fe5aaaa0965338ddfc815f6 (diff) | |
| download | vcpkg-6aae6ca3c0384d23c901e80cfbd46ed32a29321d.tar.gz vcpkg-6aae6ca3c0384d23c901e80cfbd46ed32a29321d.zip | |
[eigen3] Fix installed cmake-config files to be relative
| -rw-r--r-- | ports/eigen3/CONTROL | 2 | ||||
| -rw-r--r-- | ports/eigen3/portfile.cmake | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/eigen3/CONTROL b/ports/eigen3/CONTROL index d6e01c6cc..4dd1cd983 100644 --- a/ports/eigen3/CONTROL +++ b/ports/eigen3/CONTROL @@ -1,3 +1,3 @@ Source: eigen3 -Version: 3.3.3-2 +Version: 3.3.3-3 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 229da45e7..ba968950a 100644 --- a/ports/eigen3/portfile.cmake +++ b/ports/eigen3/portfile.cmake @@ -21,6 +21,10 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) +file(READ "${CURRENT_PACKAGES_DIR}/share/eigen3/Eigen3Targets.cmake" EIGEN_TARGETS) +string(REPLACE "set(_IMPORT_PREFIX " "get_filename_component(_IMPORT_PREFIX \"\${CMAKE_CURRENT_LIST_DIR}/../..\" ABSOLUTE) #" EIGEN_TARGETS "${EIGEN_TARGETS}") +file(WRITE "${CURRENT_PACKAGES_DIR}/share/eigen3/Eigen3Targets.cmake" "${EIGEN_TARGETS}") + # Put the licence file where vcpkg expects it file(COPY ${SOURCE_PATH}/COPYING.README DESTINATION ${CURRENT_PACKAGES_DIR}/share/eigen3) file(RENAME ${CURRENT_PACKAGES_DIR}/share/eigen3/COPYING.README ${CURRENT_PACKAGES_DIR}/share/eigen3/copyright) |
