From d3f91125255be4f382ff268d7f5afd94282e2ff2 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 17 Jul 2019 14:37:53 +0200
Subject: [PATCH] DDG4: look for python interpreter before the libraries

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

diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index 0f77486ef..7ea2d0351 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -61,7 +61,9 @@ new_dd4hep_add_plugin(DDG4Plugins
   )
 #---------------------------  Plugin library for the simulation framework  ---------
 
-FIND_PACKAGE(PythonLibs 2)
+
+find_package(PythonInterp 2 REQUIRED)
+find_package(PythonLibs 2)
 if(PYTHONLIBS_FOUND)
   MESSAGE(STATUS "Python found, creating DDG4Python Dictionary")
   new_dd4hep_add_dictionary(G__DDG4Python
-- 
GitLab