From c1cc40057d4ee868da69d91d17e9c2085b75c6e7 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Tue, 25 Apr 2017 09:03:44 +0200
Subject: [PATCH] [CMake] Only build vtkdiff when OGS_BUILD_TESTS=ON.

---
 ThirdParty/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ThirdParty/CMakeLists.txt b/ThirdParty/CMakeLists.txt
index 57e0d5402a6..db57f5dba84 100644
--- a/ThirdParty/CMakeLists.txt
+++ b/ThirdParty/CMakeLists.txt
@@ -32,7 +32,7 @@ if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/tetgen/CMakeLists.txt)
 endif()
 
 # vtkdiff
-if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/vtkdiff/CMakeLists.txt)
+if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/vtkdiff/CMakeLists.txt AND OGS_BUILD_TESTS)
     add_subdirectory(vtkdiff)
     install (PROGRAMS $<TARGET_FILE:vtkdiff> DESTINATION bin COMPONENT ogs_extras)
 endif()
-- 
GitLab