From 514534b19058d03caf08a2edaefc96edc0011636 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Wed, 2 Dec 2020 11:51:10 +0100
Subject: [PATCH] DDSim: fix useHepMC3 always true, install ddsim from
 configured location

---
 DDG4/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index 0a1c3e76f..0ef01e51b 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -149,7 +149,7 @@ FOREACH(ddsimFile ${DDSIM_FILES})
   configure_file(python/DDSim/${ddsimFile} ${CMAKE_BINARY_DIR}/python/DDSim/${ddsimFile} @ONLY)
 ENDFOREACH()
 
-install(DIRECTORY python/DDSim DESTINATION ${DD4HEP_PYTHON_INSTALL_DIR})
+install(DIRECTORY ${CMAKE_BINARY_DIR}/python/DDSim DESTINATION ${DD4HEP_PYTHON_INSTALL_DIR})
 
 install(DIRECTORY examples DESTINATION examples/DDG4)
 
-- 
GitLab