From 2503bb9895a0e6091092833baed9ff09d9e32fd2 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 17 Jul 2019 17:00:33 +0200
Subject: [PATCH] Fix DDG4Python compilation

---
 DDG4/CMakeLists.txt | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index c04dd021a..caff26478 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -85,13 +85,14 @@ if(PYTHONLIBS_FOUND)
       target_compile_options(DDPython PUBLIC -Wno-register)
     ENDIF()
     new_dd4hep_add_plugin(DDG4Python 
-      SOURCES src/python/*.cpp G__DDG4Python.cxx
+      SOURCES src/python/*.cpp
+      GENERATED G__DDG4Python.cxx
       LINK_LIBRARIES DDG4 DDPython
       )
     #---Helper to overcome deficiency of the python executable concerning multi-threading
     add_executable(pyddg4 pyddg4.cpp)
     target_link_libraries(pyddg4 PUBLIC DDPython ROOT::Core ROOT::PyROOT)
-    INSTALL(TARGETS DDPython pyddg4 EXPORT DD4hep
+    INSTALL(TARGETS DDPython pyddg4 DDG4Python EXPORT DD4hep
       LIBRARY DESTINATION lib
       RUNTIME DESTINATION bin)
   endif()
-- 
GitLab