Skip to content

Commit

Permalink
[Eigen3] Fix target check in cmake config. (microsoft#37231)
Browse files Browse the repository at this point in the history
This has already been fixed upstream. The Eigen version in vcpkg is just
extremely old since there has been no new release done upstream.
  • Loading branch information
Neumann-A authored Mar 8, 2024
1 parent c68c49d commit 6a80b20
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions ports/eigen3/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ vcpkg_cmake_configure(

vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/eigen3/Eigen3Config.cmake" "if (NOT TARGET eigen)" "if (NOT TARGET Eigen3::Eigen)")
endblock()

if(NOT VCPKG_BUILD_TYPE)
Expand Down
2 changes: 1 addition & 1 deletion ports/eigen3/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eigen3",
"version": "3.4.0",
"port-version": 3,
"port-version": 4,
"description": "C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms.",
"homepage": "http://eigen.tuxfamily.org",
"license": "MPL-2.0",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -2458,7 +2458,7 @@
},
"eigen3": {
"baseline": "3.4.0",
"port-version": 3
"port-version": 4
},
"elements": {
"baseline": "2022-12-07",
Expand Down
5 changes: 5 additions & 0 deletions versions/e-/eigen3.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "17249b310c689b0722c3ee825780a8e24c7d73a2",
"version": "3.4.0",
"port-version": 4
},
{
"git-tree": "38fc865a94dea7a84f8b1350936ed4fcc3e638cc",
"version": "3.4.0",
Expand Down

0 comments on commit 6a80b20

Please sign in to comment.