mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Search after new Eigen3 versions in sibling dirs
If we have checked out a newer Eigen3 directory in a sibling directory to ours, assume that this is because the system version is obsolete and that we want to use this one instead.
This commit is contained in:
parent
3c678f06e4
commit
5b954096fd
@ -99,8 +99,13 @@ if (NOT EIGEN3_INCLUDE_DIR)
|
|||||||
NO_DEFAULT_PATH
|
NO_DEFAULT_PATH
|
||||||
)
|
)
|
||||||
else (EIGEN3_ROOT)
|
else (EIGEN3_ROOT)
|
||||||
find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
|
# assume that if there is a sibling directory to our project which
|
||||||
PATHS
|
# is called eigen3, there is a newer version located there, or that
|
||||||
|
# it may have been checked out next to the build directory
|
||||||
|
find_path(EIGEN3_INCLUDE_DIR
|
||||||
|
NAMES signature_of_eigen3_matrix_library
|
||||||
|
HINTS ${CMAKE_SOURCE_DIR}/../
|
||||||
|
${PROJECT_SOURCE_DIR}/../
|
||||||
${CMAKE_INSTALL_PREFIX}/include
|
${CMAKE_INSTALL_PREFIX}/include
|
||||||
${KDE4_INCLUDE_DIR}
|
${KDE4_INCLUDE_DIR}
|
||||||
PATH_SUFFIXES eigen3 eigen
|
PATH_SUFFIXES eigen3 eigen
|
||||||
|
Loading…
Reference in New Issue
Block a user