[petsc-dev] Help with configure and cmake

Jose E. Roman jroman at dsic.upv.es
Fri Mar 11 06:02:58 CST 2011


I have been adding support for cmake in SLEPc. My simple approach is:
1) generate a SLEPcConfig.cmake file
2) generate CMakeLists.txt with a cmakegen module adapted from petsc-dev
3) run cmake with a cmakeboot module adapted from petsc-dev

Step 3 loads RDict and uses 'script' to process all PETSc configuration. The problem comes with prefix-based installations of PETSc, since 'script' is not available.

Can anyone suggest a solution for this? Maybe use Jed's FindPETSc.cmake module?

Thanks.
Jose




More information about the petsc-dev mailing list