Yeah, use this; it's distributed with base CMake.
https://cmake.org/cmake/help/latest/module/FindPkgConfig.html
CMake upstream recommends writing a ${Package}Config.cmake file, but petsc.pc
contains the same semantic information and the conversion to CMake dialect can
be lossy.
Those Find${Pac
Hello,
What is the preferred way to locate a PETSc installation from CMake? We usually
use a FindPackageName.cmake file generated by our dependency, however it was
recommended to us by a PETSc developer to use CMake's pkgconf interop to locate
PETSc. This means we rely on pkgconf only to locate