mirror of
https://github.com/opencv/opencv.git
synced 2025-07-25 22:57:53 +08:00
cmake: prefer using Eigen configuration files
- for better compatibility with Ceres 2.0.0 CMake scripts
This commit is contained in:
parent
97eaddd93b
commit
a6e15b2f57
@ -51,7 +51,12 @@ endif(WITH_CUDA)
|
|||||||
|
|
||||||
# --- Eigen ---
|
# --- Eigen ---
|
||||||
if(WITH_EIGEN AND NOT HAVE_EIGEN)
|
if(WITH_EIGEN AND NOT HAVE_EIGEN)
|
||||||
find_package(Eigen3 QUIET)
|
if(NOT OPENCV_SKIP_EIGEN_FIND_PACKAGE_CONFIG)
|
||||||
|
find_package(Eigen3 CONFIG QUIET) # Ceres 2.0.0 CMake scripts doesn't work with CMake's FindEigen3.cmake module (due to missing EIGEN3_VERSION_STRING)
|
||||||
|
endif()
|
||||||
|
if(NOT Eigen3_FOUND)
|
||||||
|
find_package(Eigen3 QUIET)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(Eigen3_FOUND)
|
if(Eigen3_FOUND)
|
||||||
if(TARGET Eigen3::Eigen)
|
if(TARGET Eigen3::Eigen)
|
||||||
|
Loading…
Reference in New Issue
Block a user