[petsc-users] FindPETSc.cmake expects petscvariables in wrong location

Joachim Wuttke j.wuttke at fz-juelich.de
Tue Apr 11 10:43:03 CDT 2017


The PETSc FAQ recommends to use the FindPETSc.cmake module
from the repository https://github.com/jedbrown/cmake-modules.

This doesn't work for me. CMake fails with the following message:
   CMake Error at cmake/modules/FindPETSc.cmake:125 (message):
     The pair PETSC_DIR=/usr/lib/src/petsc-3.7.5 PETSC_ARCH=linux-amd64 do not
     specify a valid PETSc installation

Line 115 of FindPETSc.cmake shows that the file petscvariables
is expected at location
   ${PETSC_DIR}/${PETSC_ARCH}/lib/petsc/conf/petscvariables

However, in the current source archive, it is located in
   ${PETSC_DIR}/lib/petsc/conf/petscvariables,
and the default install procedure does not copy it to ${PETSC_ARCH}.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5110 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170411/4f33c027/attachment.bin>


More information about the petsc-users mailing list