From 35e5d4fa35ba1a9d17fb67b3cf1c6157edb83fe3 Mon Sep 17 00:00:00 2001
From: Markus Frank <markus.frank@cern.ch>
Date: Thu, 12 Mar 2015 17:52:37 +0000
Subject: [PATCH] Fix linker problem on MAC

---
 DDG4/src/ComponentProperties.cpp | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/DDG4/src/ComponentProperties.cpp b/DDG4/src/ComponentProperties.cpp
index 81cf9304c..3832c3f6d 100644
--- a/DDG4/src/ComponentProperties.cpp
+++ b/DDG4/src/ComponentProperties.cpp
@@ -205,7 +205,20 @@ void PropertyManager::dump() const {
   }
 }
 
-#include "DDG4/ComponentProperties_inl.h"
+namespace DD4hep { 
+  namespace Parsers {
+    int parse(Property& result, const std::string& input) {
+      result.str(input); 
+      return 1;
+    }
+  }
+  namespace Utils {
+    std::ostream& toStream(const Property& result, std::ostream& os) {
+      return os << result.str();
+    }
+  }
+}
+
 #include <vector>
 #include <list>
 #include <set>
@@ -214,8 +227,9 @@ void PropertyManager::dump() const {
 #include "Math/Point3D.h"
 #include "Math/Vector3D.h"
 #include "Math/Vector4D.h"
-#include "DD4hep/objects/BasicGrammar_inl.h"
 
+#include "DD4hep/objects/BasicGrammar_inl.h"
+#include "DDG4/ComponentProperties_inl.h"
 DD4HEP_DEFINE_PARSER_GRAMMAR_TYPE(Property)
 
 namespace DD4hep {
-- 
GitLab