Search common suffixes for include files

This allows us to set e.g. -DEIGEN3_ROOT=/usr/local, and have the
files actually be located in /usr/local/include/eigen3
This commit is contained in:
Roland Kaufmann
2013-06-25 14:54:22 +02:00
parent eef87e48ad
commit 6b9d1e2da5

View File

@@ -68,6 +68,7 @@ if (NOT EIGEN3_INCLUDE_DIR)
find_path (EIGEN3_INCLUDE_DIR
NAMES signature_of_eigen3_matrix_library
PATHS ${EIGEN3_ROOT}
PATH_SUFFIXES eigen3 include/eigen3 eigen include/eigen
NO_DEFAULT_PATH
)
else (EIGEN3_ROOT)