mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 00:19:46 +01:00
Merge pull request #27536 from Kumataro:fix27530
eigen: fix to get version from eigen after v3.4.0 #27536 Close https://github.com/opencv/opencv/issues/27530 ### Pull Request Readiness Checklist See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [ ] The feature is well documented and sample code can be built with the project CMake
This commit is contained in:
parent
69b2024a3d
commit
468de9b367
|
|
@ -84,7 +84,13 @@ if(WITH_EIGEN AND NOT HAVE_EIGEN)
|
|||
set(EIGEN_WORLD_VERSION ${EIGEN3_WORLD_VERSION})
|
||||
set(EIGEN_MAJOR_VERSION ${EIGEN3_MAJOR_VERSION})
|
||||
set(EIGEN_MINOR_VERSION ${EIGEN3_MINOR_VERSION})
|
||||
else() # Eigen config file
|
||||
elseif(DEFINED Eigen3_VERSION_MAJOR) # Recommended package config variables
|
||||
# see https://github.com/opencv/opencv/issues/27530
|
||||
set(EIGEN_WORLD_VERSION ${Eigen3_VERSION_MAJOR})
|
||||
set(EIGEN_MAJOR_VERSION ${Eigen3_VERSION_MINOR})
|
||||
set(EIGEN_MINOR_VERSION ${Eigen3_VERSION_PATCH})
|
||||
else() # Deprecated package config variables
|
||||
# Removed on master at https://gitlab.com/libeigen/eigen/-/commit/f2984cd0778dd0a1d7e74216d826eaff2bc6bfab
|
||||
set(EIGEN_WORLD_VERSION ${EIGEN3_VERSION_MAJOR})
|
||||
set(EIGEN_MAJOR_VERSION ${EIGEN3_VERSION_MINOR})
|
||||
set(EIGEN_MINOR_VERSION ${EIGEN3_VERSION_PATCH})
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user