mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-26 06:44:27 +08:00
Merged in traversaro/eigen-1/traversaro/modify-findeigen3cmake-to-find-eigen3con-1469782761059 (pull request PR-213)
Modify FindEigen3.cmake to find Eigen3Config.cmake
This commit is contained in:
commit
6739f6bb1b
@ -66,16 +66,23 @@ if (EIGEN3_INCLUDE_DIR)
|
|||||||
set(EIGEN3_FOUND ${EIGEN3_VERSION_OK})
|
set(EIGEN3_FOUND ${EIGEN3_VERSION_OK})
|
||||||
|
|
||||||
else (EIGEN3_INCLUDE_DIR)
|
else (EIGEN3_INCLUDE_DIR)
|
||||||
|
|
||||||
|
# search first if an Eigen3Config.cmake is available in the system,
|
||||||
|
# if successful this would set EIGEN3_INCLUDE_DIR and the rest of
|
||||||
|
# the script will work as usual
|
||||||
|
find_package(Eigen3 ${Eigen3_FIND_VERSION} NO_MODULE QUIET)
|
||||||
|
|
||||||
find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
|
if(NOT EIGEN3_INCLUDE_DIR)
|
||||||
HINTS
|
find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
|
||||||
ENV EIGEN3_ROOT
|
HINTS
|
||||||
ENV EIGEN3_ROOT_DIR
|
ENV EIGEN3_ROOT
|
||||||
PATHS
|
ENV EIGEN3_ROOT_DIR
|
||||||
${CMAKE_INSTALL_PREFIX}/include
|
PATHS
|
||||||
${KDE4_INCLUDE_DIR}
|
${CMAKE_INSTALL_PREFIX}/include
|
||||||
PATH_SUFFIXES eigen3 eigen
|
${KDE4_INCLUDE_DIR}
|
||||||
)
|
PATH_SUFFIXES eigen3 eigen
|
||||||
|
)
|
||||||
|
endif(NOT EIGEN3_INCLUDE_DIR)
|
||||||
|
|
||||||
if(EIGEN3_INCLUDE_DIR)
|
if(EIGEN3_INCLUDE_DIR)
|
||||||
_eigen3_check_version()
|
_eigen3_check_version()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user