Open wdconinc opened 1 year ago
CMake's scanner should be able to detect the dependency.
https://github.com/eic/EICrecon/blob/3079a7b3218553731cf8b032ebc15d3332132a5c/src/services/io/podio/CMakeLists.txt#L42
src/global/pid does have the right dependency
https://github.com/eic/EICrecon/blob/3079a7b3218553731cf8b032ebc15d3332132a5c/src/global/pid/CMakeLists.txt#L21
is it up to
https://github.com/eic/EICrecon/blob/3079a7b3218553731cf8b032ebc15d3332132a5c/src/services/io/podio/CMakeLists.txt#L52
to be PUBLIC
?
Reproducer in eic-shell:
cmake -Bbuild -S.
make -C build/src/global/pid pid_plugin
Maybe that's a bit of a private interface call, but I don't think so. It seems that should resolve the dependencies correctly.
I was messing around and disabling parts of the compilation (detectors and tracking algorithms), and it introduced a missing header since the datamodel_glue.h is created later than it is needed. We should make sure src/global/pid knows it needs datamodel_glue.h before it can be compiled.