Skip to content

Support building with Eigen3 5.0.0 - #558

Open
cho-m wants to merge 2 commits into
strasdat:mainfrom
cho-m:eigen-5.0.0
Open

Support building with Eigen3 5.0.0#558
cho-m wants to merge 2 commits into
strasdat:mainfrom
cho-m:eigen-5.0.0

Conversation

@cho-m

@cho-m cho-m commented Nov 1, 2025

Copy link
Copy Markdown

Original find_package usage cannot find Eigen3 >= 5.

Using a range can help as mentioned in https://libeigen.gitlab.io/eigen/docs-5.0/TopicCMakeGuide.html

find_package(Eigen3 3.4...5 REQUIRED NO_MODULE) # Any version >=3.4.1 but <6.0.0.

However, it still needs a fallback to find 3.4.0.


EDIT: An alternative could be to run find_package unversioned and follow up with a manual version check

@Timple Timple left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Came here to do this. Thanks!

It's the only change needed to work with modern Eigen versions.
Pinging @strasdat as the last committer on this repo.

Timple added a commit to nobleo/sophus-feedstock that referenced this pull request Aug 18, 2026
Timple added a commit to nobleo/beluga that referenced this pull request Aug 18, 2026
Until strasdat/Sophus#558

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Timple added a commit to nobleo/beluga that referenced this pull request Aug 18, 2026
Until strasdat/Sophus#558

Signed-off-by: Tim Clephas <tim.clephas@nobleo.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants