diff --git a/edm4hep/CMakeLists.txt b/edm4hep/CMakeLists.txt index d60cbb165..a74468e8c 100644 --- a/edm4hep/CMakeLists.txt +++ b/edm4hep/CMakeLists.txt @@ -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 $ ) -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) diff --git a/python/edm4hep/__init__.py b/python/edm4hep/__init__.py index 42f27473c..30bb908ad 100644 --- a/python/edm4hep/__init__.py +++ b/python/edm4hep/__init__.py @@ -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