Can not link `yaml-cpp` with `libtorch`

OK, I decided to google. In 2 Minutes I hit this: Linking torch libraries and yaml-cpp gives undefined reference to yaml-cpp libraries · Issue #19353 · pytorch/pytorch · GitHub
so this is an ABI incompatibility. There’s a solution / workaround in second-to-last comment as I’m writing this.

TL;DR: Use wget https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.12.1%2Bcpu.zip