Commit ad0ef464 authored by Lukas Riedel's avatar Lukas Riedel

Apply CPP definition for experimental features only to main dorie exe

parent 5576913a
...@@ -15,10 +15,8 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Werror") ...@@ -15,10 +15,8 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Werror")
# option to change DG scheme via config file # option to change DG scheme via config file
option(EXPERIMENTAL_DG_FEATURES option(EXPERIMENTAL_DG_FEATURES
"Enable experimental DG settings through the config file" "Enable experimental DG settings through the config file"
OFF) OFF
if(EXPERIMENTAL_DG_FEATURES) )
add_definitions(-DEXPERIMENTAL_DG_FEATURES)
endif()
# #
if(NOT (dune-common_DIR OR dune-common_ROOT OR if(NOT (dune-common_DIR OR dune-common_ROOT OR
......
...@@ -3,4 +3,9 @@ add_subdirectory(solver) ...@@ -3,4 +3,9 @@ add_subdirectory(solver)
add_subdirectory(impl) add_subdirectory(impl)
add_executable("dorie" dorie.cc) add_executable("dorie" dorie.cc)
dune_target_link_libraries(dorie dorie-impl ${DUNE_LIBS}) dune_target_link_libraries(dorie dorie-impl ${DUNE_LIBS})
\ No newline at end of file
# enable setting operator scheme from config file
if(EXPERIMENTAL_DG_FEATURES)
target_compile_definitions("dorie" PUBLIC -DEXPERIMENTAL_DG_FEATURES)
endif()
\ No newline at end of file
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