From 69b2852020bc5dab60fcb3e9da8d153e64d0cfbc Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@math.fu-berlin.de>
Date: Wed, 10 Oct 2018 09:51:53 +0200
Subject: [PATCH] Add Adol-C flags if found

---
 CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 711292f..ed30463 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)
-- 
GitLab