How to get pkg-config working inside cmake on appveyor-ci / win10 / msys

I created a cmake-based installer and a mageia linux package for my rinutils library. Now when trying to get the bhs solver branch to find “librinutils.pc” it works fine in travis-ci but fails in appveyor where it uses MS Windows 10 and MSYS - no matter what paths I added to PKG_CONFIG_PATH. what should I do?

I suggest trying to get the information out of pkg-config directly first. If that can find the information properly, inspecting what FindPkgConfig is actually doing and seeing what it isn’t doing properly would be the next step.