Skip to content

Commit

Permalink
Make aliases global
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 15, 2023
1 parent 678f649 commit cd79d5b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions edm4hep/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
PODIO_GENERATE_DATAMODEL(edm4hep ../edm4hep.yaml headers sources IO_BACKEND_HANDLERS ${PODIO_IO_HANDLERS})

PODIO_ADD_DATAMODEL_CORE_LIB(edm4hep "${headers}" "${sources}")
add_library(edm4hep::edm4hep ALIAS edm4hep)
set_target_properties(edm4hep PROPERTIES ALIAS_GLOBAL true)

if (nlohmann_json_FOUND)
target_compile_definitions(edm4hep PUBLIC PODIO_JSON_OUTPUT)
Expand All @@ -12,6 +14,7 @@ endif()

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

list(APPEND EDM4HEP_INSTALL_LIBS edm4hep edm4hepDict)

Expand Down

0 comments on commit cd79d5b

Please sign in to comment.