Re: [petsc-users] Finding PETSc from CMake

2022-04-21 Thread Jed Brown
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

[petsc-users] Finding PETSc from CMake

2022-04-21 Thread Asher Mancinelli via petsc-users
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