Using MPI with CppExtension

Hi, I’m trying to use the CppExtension to import my C++ MPI code as a library. It works when I take out the MPI components, but with it, I get the “undefined symbol: ompi_mpi_int” error. Here’s what my CppExtension object looks like:

Does anything seem blatantly set up incorrectly? I’ve also tried setting the environment variables of my openmpi install manually:

I’ve been stuck on this for quite a while, and honestly any tips would help now. Is there a more effective way of debugging this ompi_mpi error? I’ve already tried a dozen solutions online relating to this error, with no change. If I can pinpoint the cause more precisely, it would be a huge help.