Skip to content

Commit 64a99b9

Browse files
committed
Specify minimum needed cmake version in test suite
Fixes #1117
1 parent a22dd2d commit 64a99b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
8989
# Eigen 3.3.1+ exports a cmake 3.0+ target for handling dependency requirements, but also
9090
# produces a fatal error if loaded from a pre-3.0 cmake.
9191
if (NOT CMAKE_VERSION VERSION_LESS 3.0)
92-
find_package(Eigen3 QUIET CONFIG)
92+
find_package(Eigen3 3.2.7 QUIET CONFIG)
9393
if (EIGEN3_FOUND)
9494
if (EIGEN3_VERSION_STRING AND NOT EIGEN3_VERSION_STRING VERSION_LESS 3.3.1)
9595
set(PYBIND11_EIGEN_VIA_TARGET 1)
@@ -99,7 +99,7 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
9999
if (NOT EIGEN3_FOUND)
100100
# Couldn't load via target, so fall back to allowing module mode finding, which will pick up
101101
# tools/FindEigen3.cmake
102-
find_package(Eigen3 QUIET)
102+
find_package(Eigen3 3.2.7 QUIET)
103103
endif()
104104

105105
if(EIGEN3_FOUND)

0 commit comments

Comments
 (0)