From f18fc8779e77cca6c4ee699c88236af3e62bcd09 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 19 May 2021 14:44:51 +0200
Subject: [PATCH] [cmake] Fix exclusion of steady state benchmarks.

---
 ProcessLib/SteadyStateDiffusion/CMakeLists.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ProcessLib/SteadyStateDiffusion/CMakeLists.txt b/ProcessLib/SteadyStateDiffusion/CMakeLists.txt
index 8f18f82215a..ba3bfc7283f 100644
--- a/ProcessLib/SteadyStateDiffusion/CMakeLists.txt
+++ b/ProcessLib/SteadyStateDiffusion/CMakeLists.txt
@@ -6,4 +6,6 @@ target_link_libraries(
     SteadyStateDiffusion PUBLIC ProcessLib PRIVATE ParameterLib
 )
 
-include(Tests.cmake)
+if(OGS_BUILD_TESTING)
+    include(Tests.cmake)
+endif()
-- 
GitLab