target_compile_definitions(amdis PUBLIC AMDIS_BACKEND_MTL=1)
target_compile_options(amdis PUBLIC -Wall -pedantic -Wno-unused-parameter)#-ftemplate-backtrace-limit=0
target_link_libraries(amdis fmt)
option(ENABLE_ALL_WARNINGS "enable all meaningful warnings" OFF)
if(ENABLE_ALL_WARNINGS)
target_compile_options(amdis PUBLIC "-Wall""-Wextra""-pedantic""-Wnon-virtual-dtor""-Wold-style-cast""-Wcast-align""-Woverloaded-virtual""-Wpedantic""-Wconversion")
endif(ENABLE_ALL_WARNINGS)
# finalize the dune project, e.g. generating config.h etc.
And a compiler that supports the C++14 standard, e.g. g++ >= 5.0 and clang >= 3.6, and cmake >= 3.1.
By default, the `dune-istl` linear-algebra backend is used. To choose one of `ISTL`, `MTL`, or `EIGEN`, you can specify the cmake parameter `-DBACKEND=[ISTL,MTL,EIGEN]`.
If your MTL4 installation is not found by default, you have to specify the path,
where the file `MTLConfig.cmake` is found, here called `MTL_ROOT`. Then simply use