Skip to content
Snippets Groups Projects
Commit cff34928 authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Only add adolc flags when the solver is build

parent 3378c6af
Branches
Tags
No related merge requests found
......@@ -17,6 +17,7 @@ add_subdirectory("src")
if(HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG)
set(programs viscoelast nonlinelast)
foreach(_program ${programs})
add_executable(${_program} ${_program}.cc)
add_dune_amiramesh_flags(${_program})
......@@ -27,7 +28,7 @@ if(HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG)
endforeach()
endif()
if (ADOLC_FOUND)
if(HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG AND ADOLC_FOUND)
add_dune_adolc_flags(nonlinelast)
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment