Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
amdis
amdis-core
Commits
358fbbc0
Commit
358fbbc0
authored
Mar 17, 2019
by
Praetorius, Simon
Browse files
make linear_algebra backend packages required if BACKEND is selected
parent
95a126a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cmake/modules/AmdisMacros.cmake
View file @
358fbbc0
...
...
@@ -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
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment