Skip to content

Commit

Permalink
prepare edm4hep for reflex to rootcling migration of PODIO
Browse files Browse the repository at this point in the history
  • Loading branch information
hegner committed Aug 24, 2023
1 parent c38b64b commit f361ed9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions edm4hep/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (nlohmann_json_FOUND)
target_link_libraries(edm4hep PUBLIC nlohmann_json::nlohmann_json)
endif()

PODIO_ADD_ROOT_IO_DICT(edm4hepDict edm4hep "${headers}" src/selection.xml)
PODIO_ADD_ROOT_IO_DICT(edm4hepDict edm4hep "${headers}" edm4hep/LinkDef.h)
add_library(EDM4HEP::edm4hepDict ALIAS edm4hepDict )
set_target_properties(edm4hep PROPERTIES ALIAS_GLOBAL true)

Expand All @@ -32,13 +32,13 @@ install(TARGETS ${EDM4HEP_INSTALL_LIBS}
COMPONENT dev)

install(FILES
"${PROJECT_BINARY_DIR}/edm4hep/edm4hepDictDict.rootmap"
"${PROJECT_BINARY_DIR}/edm4hep/libedm4hep.rootmap"
DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT dev)

install(FILES
../edm4hep.yaml
DESTINATION "${CMAKE_INSTALL_DATADIR}/edm4hep" COMPONENT dev)

install(FILES
"${PROJECT_BINARY_DIR}/edm4hep/libedm4hepDict_rdict.pcm"
"${PROJECT_BINARY_DIR}/edm4hep/libedm4hep_rdict.pcm"
DESTINATION "${CMAKE_INSTALL_LIBDIR}" COMPONENT dev)
2 changes: 1 addition & 1 deletion python/edm4hep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from .__version__ import __version__
import ROOT
res = ROOT.gSystem.Load('libedm4hepDict.so')
res = ROOT.gSystem.Load('libedm4hep.so')
if res < 0:
raise RuntimeError('Failed to load libedm4hepDict.so')

Expand Down

0 comments on commit f361ed9

Please sign in to comment.