Compiling from Source with Pre-Installed ONNX

Hello all,
I was wondering if it would be possible to compile LibTorch against a pre-installed ONNX library. I am currently able to compile LibTorch from scratch, against a pre-installed version of Protobuf, but didn’t see an obvious way to do the same with ONNX.

This is a requirement for me, as I have some applications that use ONNX and do not use LibTorch. I don’t want to have multiple, possibly incompatible ONNX libraries installed.

Thanks in advance,