Skip to content
Snippets Groups Projects
Commit 4cb7017c authored by Andre Sailer's avatar Andre Sailer
Browse files

XML_SETUP: protect against calling it twice

parent f586280b
No related branches found
No related tags found
No related merge requests found
...@@ -8,8 +8,10 @@ if(DD4HEP_USE_XERCESC) ...@@ -8,8 +8,10 @@ if(DD4HEP_USE_XERCESC)
set(XML_LIBRARIES XercesC::XercesC) set(XML_LIBRARIES XercesC::XercesC)
else() else()
set(DD4HEP_USE_XERCESC OFF) set(DD4HEP_USE_XERCESC OFF)
ADD_LIBRARY(TinyXML INTERFACE) IF(NOT TARGET TinyXML)
TARGET_COMPILE_DEFINITIONS(TinyXML INTERFACE DD4HEP_USE_TINYXML) ADD_LIBRARY(TinyXML INTERFACE)
TARGET_COMPILE_DEFINITIONS(TinyXML INTERFACE DD4HEP_USE_TINYXML)
INSTALL(TARGETS TinyXML EXPORT DD4hep DESTINATION lib)
ENDIF()
set(XML_LIBRARIES TinyXML) set(XML_LIBRARIES TinyXML)
INSTALL(TARGETS TinyXML EXPORT DD4hep DESTINATION lib)
endif() endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment