diff options
author | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-11-19 12:31:11 -0500 |
---|---|---|
committer | Benoit Jacob <jacob.benoit.1@gmail.com> | 2009-11-19 12:31:11 -0500 |
commit | bbf0eb35a769b3b644ac62d65601f7b3044baacd (patch) | |
tree | 70fbd38b52a12d129fa9f3ba5f041000da127e5d /cmake/FindEigen3.cmake | |
parent | b5f4636d42eb8b8e2383c0fbe357dca8fa1d357e (diff) |
* in Eigen/CMakeLists.txt, finally do a globbing to we no longer will have problems with "oops forgot to install new module".
* add a file Eigen/signature_of_eigen3_matrix_library, use it to make FindEigen3.cmake more solid: able to find Eigen in either eigen3/ or eigen/ and not mix it up with Eigen2.
Diffstat (limited to 'cmake/FindEigen3.cmake')
-rw-r--r-- | cmake/FindEigen3.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/FindEigen3.cmake b/cmake/FindEigen3.cmake index 610df8023..1d7dbb43d 100644 --- a/cmake/FindEigen3.cmake +++ b/cmake/FindEigen3.cmake @@ -60,11 +60,11 @@ if (EIGEN3_INCLUDE_DIR) else (EIGEN3_INCLUDE_DIR) - find_path(EIGEN3_INCLUDE_DIR NAMES Eigen/Core + find_path(EIGEN3_INCLUDE_DIR NAMES Eigen/signature_of_eigen3_matrix_library PATHS - ${INCLUDE_INSTALL_DIR} + ${CMAKE_INSTALL_PREFIX}/include ${KDE4_INCLUDE_DIR} - PATH_SUFFIXES eigen3 + PATH_SUFFIXES eigen3 eigen ) if(EIGEN3_INCLUDE_DIR) |