From cd39fb814db9bee6a9d4e57de818367585bd3277 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Wed, 6 Oct 2021 18:15:06 +0200
Subject: [PATCH] [cmake] Add symbol OGS_USE_PYTHON to HeatTransportBHE.

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

diff --git a/ProcessLib/HeatTransportBHE/CMakeLists.txt b/ProcessLib/HeatTransportBHE/CMakeLists.txt
index 461b06769d4..f18d1555014 100644
--- a/ProcessLib/HeatTransportBHE/CMakeLists.txt
+++ b/ProcessLib/HeatTransportBHE/CMakeLists.txt
@@ -10,6 +10,9 @@ target_link_libraries(
     PRIVATE ParameterLib
             $<$<TARGET_EXISTS:pybind11::pybind11>:pybind11::pybind11>
 )
+target_compile_definitions(
+    HeatTransportBHE PRIVATE $<$<BOOL:${OGS_USE_PYTHON}>:OGS_USE_PYTHON>
+)
 
 if(OGS_BUILD_TESTING)
     include(Tests.cmake)
-- 
GitLab