Skip to content

Commit

Permalink
Remove unnecessary dictionary generation for I/O interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Jun 11, 2024
1 parent a977956 commit faaa03a
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 13 deletions.
3 changes: 1 addition & 2 deletions include/podio/Reader.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
namespace podio {

class Reader {
public:
// ROOT dictionary generation needs this to be public for some reason
private:
struct ReaderConcept {
virtual ~ReaderConcept() = default;

Expand Down
3 changes: 1 addition & 2 deletions include/podio/Writer.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
namespace podio {

class Writer {
public:
// ROOT dictionary generation needs this to be public for some reason
private:
struct WriterConcept {
virtual ~WriterConcept() = default;

Expand Down
8 changes: 5 additions & 3 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,11 @@ set(io_headers
${PROJECT_SOURCE_DIR}/include/podio/Reader.h
)

PODIO_ADD_LIB_AND_DICT(podioIO "${io_headers}" "${io_sources}" io_selection.xml)
add_library(podioIO SHARED ${io_sources})
add_library(podio::podioIO ALIAS podioIO)
target_include_directories(podioIO PUBLIC
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
target_link_libraries(podioIO PUBLIC podio::podio podio::podioRootIO)
if(ENABLE_SIO)
target_link_libraries(podioIO PUBLIC podio::podioSioIO)
Expand All @@ -172,8 +176,6 @@ install(FILES
${CMAKE_CURRENT_BINARY_DIR}/libpodioDict_rdict.pcm
${CMAKE_CURRENT_BINARY_DIR}/podioRootIODictDict.rootmap
${CMAKE_CURRENT_BINARY_DIR}/libpodioRootIODict_rdict.pcm
${CMAKE_CURRENT_BINARY_DIR}/podioIODictDict.rootmap
${CMAKE_CURRENT_BINARY_DIR}/libpodioIODict_rdict.pcm
DESTINATION "${CMAKE_INSTALL_LIBDIR}")

if (ENABLE_SIO)
Expand Down
6 changes: 0 additions & 6 deletions src/io_selection.xml

This file was deleted.

0 comments on commit faaa03a

Please sign in to comment.