From 8aa62c6e13ced1e3dcd3ed9a093197b172ce55a7 Mon Sep 17 00:00:00 2001
From: Markus Frank <Markus.Frank@cern.ch>
Date: Wed, 21 Jun 2017 21:54:13 +0200
Subject: [PATCH] Improve handle cast safety using predefined handle casts

---
 DDG4/CMakeLists.txt                | 4 ++--
 examples/AlignDet/CMakeLists.txt   | 2 +-
 examples/Conditions/CMakeLists.txt | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index e9f6e1c18..99440da5e 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -68,5 +68,5 @@ dd4hep_add_executable(pyddg4
   USES        [ROOT   REQUIRED COMPONENTS PyROOT]
   OPTIONAL    [PYTHON REQUIRED SOURCES pyddg4.cpp])
 #---Package installation procedure(s) ----------------------------------------------
-dd4hep_install_dir(examples DESTINATION ${DD4hep_DIR}/examples/DDG4)
-dd4hep_install_files(FILES python/*.py python/*.C DESTINATION ${DD4hep_DIR}/python)
+dd4hep_install_dir(examples DESTINATION examples/DDG4)
+dd4hep_install_files(FILES python/*.py python/*.C DESTINATION python)
diff --git a/examples/AlignDet/CMakeLists.txt b/examples/AlignDet/CMakeLists.txt
index 97ae44895..10d51bf8b 100644
--- a/examples/AlignDet/CMakeLists.txt
+++ b/examples/AlignDet/CMakeLists.txt
@@ -21,7 +21,7 @@ dd4hep_package ( AlignDet MAJOR 0 MINOR 0 PATCH 1
   )
 
 dd4hep_add_plugin( AlignDetExample SOURCES src/*.cpp  )
-dd4hep_install_dir( compact DESTINATION ${DD4hep_DIR}/examples/AlignDet )
+dd4hep_install_dir( compact DESTINATION examples/AlignDet )
 dd4hep_configure_scripts( AlignDet DEFAULT_SETUP WITH_TESTS)
 
 #
diff --git a/examples/Conditions/CMakeLists.txt b/examples/Conditions/CMakeLists.txt
index 7a28ad6d8..ee6cb58d7 100644
--- a/examples/Conditions/CMakeLists.txt
+++ b/examples/Conditions/CMakeLists.txt
@@ -20,8 +20,8 @@ dd4hep_package ( Conditions MAJOR 0 MINOR 0 PATCH 1
 )
 #-----------------------------------------------------------------------------------
 dd4hep_add_plugin(ConditionsExample SOURCES src/*.cpp)
-dd4hep_install_dir( xml  DESTINATION ${DD4hep_DIR}/examples/Conditions )
-dd4hep_install_dir( data DESTINATION ${DD4hep_DIR}/examples/Conditions )
+dd4hep_install_dir( xml  DESTINATION examples/Conditions )
+dd4hep_install_dir( data DESTINATION examples/Conditions )
 dd4hep_configure_scripts ( Conditions DEFAULT_SETUP WITH_TESTS )
 #--------------------------------------------------------------------------
 #
-- 
GitLab