Skip to content

Commit 4a213c3

Browse files
committed
Bump Eigen to versions 3.4.0 through 5.0.0
Eigen changed how their versioning works, so the new version is version 5.0.0. They still use Eigen3 as the name in cmake it seems.
1 parent ed40e02 commit 4a213c3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

M2/cmake/check-libraries.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,13 @@ find_package(GMP 6.0.0 REQUIRED)
127127
# givaro prime field and algebraic computations (needs gmp)
128128
# fflas_ffpack Finite Field Linear Algebra Routines (needs gmp, givaro + LAPACK)
129129

130-
find_package(Eigen3 3.3.0 PATHS ${M2_HOST_PREFIX})
130+
find_package(Eigen3 3.4...5.0 PATHS ${M2_HOST_PREFIX})
131+
# FindEigen3 doesn't set EIGEN3_FOUND, and instead we should check
132+
# if the target Eigen3::Eigen is defined, so we set EIGEN3_FOUND
133+
# for compatibility with the rest of the build code
134+
if(TARGET Eigen3::Eigen)
135+
set(EIGEN3_FOUND TRUE)
136+
endif (TARGET Eigen3::Eigen)
131137
find_package(BDWGC 7.6.4)
132138
find_package(MPFR 4.0.1)
133139
find_package(MPFI 1.5.1)

0 commit comments

Comments
 (0)