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
7d75c4f058
commit
a62e2f4770
@ -99,10 +99,15 @@ if (NOT EIGEN3_INCLUDE_DIR)
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
else (EIGEN3_ROOT)
|
||||
find_path(EIGEN3_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
|
||||
PATHS
|
||||
${CMAKE_INSTALL_PREFIX}/include
|
||||
${KDE4_INCLUDE_DIR}
|
||||
# assume that if there is a sibling directory to our project which
|
||||
# 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
|
||||
${KDE4_INCLUDE_DIR}
|
||||
PATH_SUFFIXES eigen3 eigen
|
||||
)
|
||||
endif (EIGEN3_ROOT)
|
||||
|
Loading…
Reference in New Issue
Block a user