Commit b909d646 authored by Praetorius, Simon's avatar Praetorius, Simon

changed cmake to prevent compiling of std::variant examples if no variant is available

parent bc541924
Pipeline #1478 canceled with stage
in 3 minutes and 41 seconds
......@@ -10,11 +10,14 @@ target_link_dune_default_libraries("localrefinement")
add_executable("uggrid" uggrid.cc)
target_link_dune_default_libraries("uggrid")
add_executable("multigridview" multigridview.cc)
target_link_dune_default_libraries("multigridview")
if (DUNE_HAVE_CXX_VARIANT)
add_executable("multigridview" multigridview.cc)
target_link_dune_default_libraries("multigridview")
add_executable("hierarchiciterator" hierarchiciterator.cc)
target_link_dune_default_libraries("hierarchiciterator")
endif (DUNE_HAVE_CXX_VARIANT)
add_executable("hierarchiciterator" hierarchiciterator.cc)
target_link_dune_default_libraries("hierarchiciterator")
add_executable("interpolate" interpolate.cc)
target_link_dune_default_libraries("interpolate")
......
......@@ -39,7 +39,7 @@
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
#include "phasefield3.hh"
#include "phasefield4.hh"
using namespace Dune;
using namespace Dune::Indices;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment