Skip to content
Snippets Groups Projects
Commit b05184c8 authored by René Fritze's avatar René Fritze
Browse files

[cmake] change Eigen discovery

parent 195f7716
No related branches found
No related tags found
No related merge requests found
......@@ -113,15 +113,13 @@ if(HAVE_BLAS)
list(APPEND DUNE_DEFAULT_LIBS ${BLAS_LIBRARIES})
endif(HAVE_BLAS)
pkg_check_modules(EIGEN eigen3)
set(CMAKE_REQUIRED_INCLUDES ${EIGEN_INCLUDE_DIRS})
check_include_file_cxx("Eigen/SparseLU" HAVE_EIGEN_SPARSE)
if(EIGEN_FOUND AND HAVE_EIGEN_SPARSE)
include_directories(${EIGEN_INCLUDE_DIRS})
find_package(Eigen3 3.2.0)
if(EIGEN3_FOUND)
include_directories(${EIGEN3_INCLUDE_DIR})
set(HAVE_EIGEN 1)
else(EIGEN_FOUND AND HAVE_EIGEN_SPARSE)
else(EIGEN3_FOUND)
set(HAVE_EIGEN 0)
endif(EIGEN_FOUND AND HAVE_EIGEN_SPARSE)
endif(EIGEN3_FOUND)
pkg_check_modules(LIBAMA libama)
if(LIBAMA_FOUND)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment