From 53ab84b33ca499545842b99db141631a684db473 Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Mon, 25 Nov 2013 13:15:35 +0000
Subject: [PATCH] Fix build error

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

diff --git a/DDG4/CMakeLists.txt b/DDG4/CMakeLists.txt
index e7fef1061..2cf712160 100644
--- a/DDG4/CMakeLists.txt
+++ b/DDG4/CMakeLists.txt
@@ -83,7 +83,7 @@ install(DIRECTORY include/DDG4
   DESTINATION include
   PATTERN ".svn" EXCLUDE )
 
-install(TARGETS DD4hepG4 DD4hepG4Plugins DD4hepG4Legacy DD4hepG4LCIO g4gdmlDisplay
+install(TARGETS DD4hepG4 DD4hepG4Plugins DD4hepG4Legacy g4gdmlDisplay
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   )
@@ -92,5 +92,13 @@ install(TARGETS DD4hepG4 g4FromXML
   RUNTIME DESTINATION bin
   LIBRARY DESTINATION lib
   )
+
+if(LCIO_DIR)
+install(TARGETS DD4hepG4LCIO 
+  RUNTIME DESTINATION bin
+  LIBRARY DESTINATION lib
+  )
+endif()
+
 # to do: add corresponding uninstall...
 #-------------------------------------------------------
-- 
GitLab