Currently, OpenFPM uses find_package(PETSc) for PETSc detection, this is not ideal because the corresponding CMake module findPETSc.cmake is deprecated.
Further, a lot of options in script/install_PETSC.sh are no longer used.
A potential solution is to move to pkg-config. This is recommended by petsc-dev: https://www.mail-archive.com/petsc-dev@mcs.anl.gov/msg28259.html
Example implementation using pkg-config can be found at: https://stackoverflow.com/a/67885007
Currently, OpenFPM uses
find_package(PETSc)for PETSc detection, this is not ideal because the corresponding CMake modulefindPETSc.cmakeis deprecated.Further, a lot of options in
script/install_PETSC.share no longer used.A potential solution is to move to pkg-config. This is recommended by petsc-dev: https://www.mail-archive.com/petsc-dev@mcs.anl.gov/msg28259.html
Example implementation using pkg-config can be found at: https://stackoverflow.com/a/67885007