From 2559c0649abb1859eb57f823951c028934ecc7b6 Mon Sep 17 00:00:00 2001
From: Andre Sailer <andre.philippe.sailer@cern.ch>
Date: Mon, 1 Jul 2019 14:44:25 +0200
Subject: [PATCH] CMakeLists: export: use relative path, make Installation
 trivially relocatable

---
 CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6938459e4..3489ca922 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -214,5 +214,7 @@ endif()
 
 INSTALL(EXPORT DD4hep 
   NAMESPACE DD4hep::
-  DESTINATION ${CMAKE_INSTALL_PREFIX}
-  FILE DD4hepConfig.cmake)
\ No newline at end of file
+  FILE DD4hepConfig.cmake
+  DESTINATION lib
+  EXPORT_LINK_INTERFACE_LIBRARIES
+  )
\ No newline at end of file
-- 
GitLab