Skip to content
Snippets Groups Projects
Commit 358fbbc0 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

make linear_algebra backend packages required if BACKEND is selected

parent 95a126a5
No related branches found
No related tags found
1 merge request!8make linear_algebra backend packages required if BACKEND is selected
......@@ -5,7 +5,7 @@ set(BACKEND "ISTL" CACHE STRING "LinearAlgebra backend. One of MTL, EIGEN, ISTL"
set_property(CACHE BACKEND PROPERTY STRINGS "MTL" "EIGEN" "ISTL")
if (BACKEND STREQUAL "MTL")
find_package(MTL
find_package(MTL REQUIRED
PATHS /usr/local/lib/mtl4 /opt/sources/mtl4 /opt/development/mtl4)
if (MTL_FOUND)
......@@ -29,7 +29,7 @@ if (BACKEND STREQUAL "MTL")
INCLUDE_DIRS ${MTL_INCLUDE_DIRS})
endif (MTL_FOUND)
elseif (BACKEND STREQUAL "EIGEN")
find_package(Eigen3)
find_package(Eigen3 REQUIRED 3.3.5)
set(HAVE_EIGEN EIGEN_FOUND)
if (EIGEN3_FOUND)
......@@ -39,4 +39,6 @@ elseif (BACKEND STREQUAL "EIGEN")
COMPILE_DEFINITIONS ${EIGEN3_DEFINITIONS}
INCLUDE_DIRS ${EIGEN3_INCLUDE_DIRS})
endif (EIGEN3_FOUND)
elseif (NOT dune-istl_FOUND)
message(FATAL "Need dune-istl, MTL, or Eigen3 as linear algebra backend. Change flag BACKEND!")
endif ()
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