Closed wdconinc closed 2 weeks ago
This approach continues to break downstream compilation due to the use of the ONNX functionality in headers. We should promote USE_ONNX as a target compile definition attached to one of our installed targets or somehow propagate USE_ONNX through EICreconConfig.cmake. This is similar to the issue in JANA2 with HAVE_PODIO.
I'm considering this issue out of scope for this PR which just aims to fix compilation within EICrecon.
Briefly, what does this PR introduce?
This PR passes USE_ONNX as a compile definition and guards use of ONNX functionality with an ifdef.
What kind of change does this PR introduce?
Please check if this PR fulfills the following:
Does this PR introduce breaking changes? What changes might users need to make to their code?
No.
Does this PR change default behavior?
No.