Skip to content

Commit

Permalink
Merge pull request #110 from maximecharriere/cmake/FindEigen3
Browse files Browse the repository at this point in the history
Automaticaly find eigen3
  • Loading branch information
pomerlef authored Feb 13, 2021
2 parents 16250bf + d4d23d7 commit 3cab7ee
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,15 @@ endif ()
include(GNUInstallDirs)

# eigen 2 or 3
find_path(EIGEN_INCLUDE_DIR Eigen/Core
/usr/local/include/eigen3
/usr/local/include/eigen2
/usr/local/include/eigen
/usr/include/eigen3
/usr/include/eigen2
/usr/include/eigen
/opt/local/include/eigen3
find_path(EIGEN_INCLUDE_DIR NAMES signature_of_eigen3_matrix_library
HINTS ENV EIGEN3_INC_DIR
ENV EIGEN3_DIR
PATHS Eigen/Core
/usr/local/include
/usr/include
/opt/local/include
PATH_SUFFIXES include eigen3 eigen2 eigen
DOC "Directory containing the Eigen3 header files"
)

# optionally, opencl
Expand Down

0 comments on commit 3cab7ee

Please sign in to comment.