We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2889136 commit 48544f2Copy full SHA for 48544f2
tests/CMakeLists.txt
@@ -299,11 +299,14 @@ if(PYBIND11_TEST_FILES_EIGEN_I GREATER -1)
299
set(EIGEN3_VERSION "${PYBIND11_EIGEN_VERSION_STRING}")
300
301
else()
302
- find_package(Eigen3 3.2.7 QUIET CONFIG)
+ find_package(Eigen3 3.2.7...5 QUIET CONFIG)
303
+ set(EIGEN3_FOUND ${Eigen3_FOUND})
304
+ set(EIGEN3_VERSION ${Eigen3_VERSION})
305
306
if(NOT EIGEN3_FOUND)
307
# Couldn't load via target, so fall back to allowing module mode finding, which will pick up
308
# tools/FindEigen3.cmake
309
+ # XXX: MODULE mode does not work with Eigen 5
310
find_package(Eigen3 3.2.7 QUIET)
311
endif()
312
0 commit comments