Commit 44737794 authored by Lukas Riedel's avatar Lukas Riedel

Fix CMake option for experimental DG features

parent fd1ea68e
...@@ -4,6 +4,11 @@ if(dune-testtools_FOUND) ...@@ -4,6 +4,11 @@ if(dune-testtools_FOUND)
add_subdirectory("test") add_subdirectory("test")
endif() endif()
# enable setting operator scheme from config file
if(EXPERIMENTAL_DG_FEATURES)
target_compile_definitions(dorie-richards PUBLIC -DEXPERIMENTAL_DG_FEATURES)
endif()
add_executable(richards richards.cc) add_executable(richards richards.cc)
dune_target_link_libraries(richards ${DUNE_LIBS}) dune_target_link_libraries(richards ${DUNE_LIBS})
target_link_libraries(richards target_link_libraries(richards
...@@ -15,8 +20,3 @@ target_link_libraries(transport ...@@ -15,8 +20,3 @@ target_link_libraries(transport
dorie-richards dorie-transport spdlog muparser::muparser hdf5 yaml-cpp) dorie-richards dorie-transport spdlog muparser::muparser hdf5 yaml-cpp)
add_custom_target("dorie" DEPENDS richards transport) add_custom_target("dorie" DEPENDS richards transport)
# enable setting operator scheme from config file
if(EXPERIMENTAL_DG_FEATURES)
target_compile_definitions("dorie" PUBLIC -DEXPERIMENTAL_DG_FEATURES)
endif()
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