This is a really wonky issue (it took me quite a while to figure out why it was complaining). It works around a quirky path issue that presents itself when using libmultiprocess as a subdir of Core and using a depends-built capnproto within the same source tree:
0CMake Error in src/ipc/libmultiprocess/CMakeLists.txt:
1 Target "multiprocess" INTERFACE_INCLUDE_DIRECTORIES property contains path:
2
3 "/home/cory/dev/bitcoin/depends/x86_64-pc-linux-gnu/include"
4
5 which is prefixed in the source directory.
It doesn’t present in https://github.com/bitcoin/bitcoin/pull/31741 because in that case, the lib is built in depends rather than as part of the source tree.
This is part of my work to always build from the source tree rather than from depends. I can push up the other changes (the EXTERNAL_MPGEN option )needed for that, but I wanted to break this one out in case it needed further discussion/explanation. It’s safe to go in as-is though, it should just be a no-op.
While I was at it, because the capnp headers spew annoying and harmless warnings when built with Core’s flags turned on, I marked them as SYSTEM.
See the commit description for more details.