Skip to content

Commit

Permalink
Rename old schema (evolution) shared lib
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 17, 2024
1 parent 71992bd commit 782797b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions edm4hep/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ endif()
PODIO_ADD_ROOT_IO_DICT(edm4hepDict edm4hep "${headers}" src/selection.xml)
add_library(EDM4HEP::edm4hepDict ALIAS edm4hepDict )

add_library(edm4hep_v2 SHARED schema_evolution/src/OldLinkEvolution.cc)
target_include_directories(edm4hep_v2 PRIVATE
add_library(edm4hepOldSchemas SHARED schema_evolution/src/OldLinkEvolution.cc)
target_include_directories(edm4hepOldSchemas PRIVATE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/edm4hep/schema_evolution/include>
)
target_link_libraries(edm4hep_v2 PUBLIC podio::podio EDM4HEP::edm4hep)
target_link_libraries(edm4hepOldSchemas PUBLIC podio::podio EDM4HEP::edm4hep)

PODIO_ADD_ROOT_IO_DICT(edm4hep_v2Dict edm4hep_v2 ${PROJECT_SOURCE_DIR}/edm4hep/schema_evolution/include/edm4hep/schema_evolution/OldLinkData.h schema_evolution/src/selection.xml)
PODIO_ADD_ROOT_IO_DICT(edm4hepOldSchemasDict edm4hepOldSchemas ${PROJECT_SOURCE_DIR}/edm4hep/schema_evolution/include/edm4hep/schema_evolution/OldLinkData.h schema_evolution/src/selection.xml)

list(APPEND EDM4HEP_INSTALL_LIBS edm4hep edm4hepDict)

Expand Down
4 changes: 2 additions & 2 deletions python/edm4hep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
if res != 0:
raise RuntimeError("Failed to load Constants.h")

res = ROOT.gSystem.Load("libedm4hep_v2")
res = ROOT.gSystem.Load("libedm4hepOldSchemas")
if res != 0:
raise RuntimeError("Failed to load edm4hep v2 legacy library")
raise RuntimeError("Failed to load edm4hep legacy schemas library")

from ROOT import edm4hep # noqa: E402

Expand Down

0 comments on commit 782797b

Please sign in to comment.