diff --git a/CMakeLists.txt b/CMakeLists.txt
index 711292f0273889e3454bc4b17dc95cc97175a770..ed304633f8b03b82807d3c919d45adfe41fa8e63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,4 +27,8 @@ if(HAVE_AMIRAMESH AND HAVE_IPOPT AND HAVE_PSURFACE AND HAVE_UG)
   endforeach()
 endif()
 
+if (ADOLC_FOUND)
+  add_dune_adolc_flags(nonlinelast)
+endif()
+
 finalize_dune_project(GENERATE_CONFIG_H_CMAKE)