Skip to content

CMake fails with Eigen 5.0. #5724

@alxbilger

Description

@alxbilger

CMake fails with Eigen 5.0.

FindEigen3.cmake relies on Eigen version, but the versioning system changed with Eigen 5.0. See:

This release marks a transition to Semantic Versioning. Previously, Eigen used a WORLD.MAJOR.MINOR scheme. From now on, version numbers will follow the MAJOR.MINOR.PATCH format, indicating breaking changes, new features, and bug fixes, respectively. The WORLD version will remain 3 for this and subsequent releases for posterity.

From https://gitlab.com/libeigen/eigen/-/releases

The CMake error is:

Eigen3 version .. found in C:\Users\alexb\Dev\eigen, but at least version 2.91.0 is required
Eigen3 version .. found in C:\Users\alexb\Dev\eigen, but at least version 2.91.0 is required
CMake Error at Sofa/framework/Config/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Eigen3 (missing: EIGEN3_VERSION_OK) (Required is at least
  version "2.91.0")
Call Stack (most recent call first):
  Sofa/framework/Config/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindEigen3.cmake:108 (find_package_handle_standard_args)
  Sofa/framework/Config/cmake/SofaMacrosConfigure.cmake:450 (find_package)
  Sofa/framework/Helper/CMakeLists.txt:5 (sofa_find_package)

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue: bug (minor)Bug affecting only some users or with no major impact on the framework

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions