From 43e440313087deab3b14cbf5fca83fef4c848fc2 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Wed, 8 May 2019 06:47:44 +0000
Subject: [PATCH] COB-64: Allow LCS/MessageBus to be compiled without requiring
 python

---
 LCS/MessageBus/CMakeLists.txt | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/LCS/MessageBus/CMakeLists.txt b/LCS/MessageBus/CMakeLists.txt
index 41113fb9e24..ab4763a103c 100644
--- a/LCS/MessageBus/CMakeLists.txt
+++ b/LCS/MessageBus/CMakeLists.txt
@@ -1,6 +1,11 @@
 # $Id$
 
-lofar_package(MessageBus 1.0 DEPENDS Common pyparameterset)
+# Python can be explicitly disabled, if only the C++ libraries are needed
+if(USE_PYTHON)
+  lofar_package(MessageBus 1.0 DEPENDS Common pyparameterset)
+else(USE_PYTHON)
+  lofar_package(MessageBus 1.0 DEPENDS Common)
+endif(USE_PYTHON)
 
 include(LofarFindPackage)
 lofar_find_package(QPID)
-- 
GitLab