From 4485222cbac2c880a37f2e41b870fe2fec4f3dc0 Mon Sep 17 00:00:00 2001
From: Bernd Flemisch <bernd@iws.uni-stuttgart.de>
Date: Fri, 2 Feb 2018 12:36:04 +0100
Subject: [PATCH] [test] use CMake guard for test requiring dune-foamgrid

---
 test/common/boundingboxtree/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/common/boundingboxtree/CMakeLists.txt b/test/common/boundingboxtree/CMakeLists.txt
index 0611365eb8..c40a8ee1e9 100644
--- a/test/common/boundingboxtree/CMakeLists.txt
+++ b/test/common/boundingboxtree/CMakeLists.txt
@@ -11,7 +11,9 @@ dune_add_test(NAME test_bboxtree_dim3
               SOURCES test_bboxtree.cc
               COMPILE_DEFINITIONS WORLD_DIMENSION=3)
 
-dune_add_test(SOURCES test_geometry_fracture.cc)
+dune_add_test(NAME test_geometry_fracture
+              SOURCES test_geometry_fracture.cc
+              CMAKE_GUARD dune-foamgrid_FOUND)
 
 # symlink the input file in the build directory
 dune_symlink_to_source_files(FILES "network1d.msh" "network2d.msh" "fracture.msh")
-- 
GitLab