[petsc-users] FindPETSc.cmake expects petscvariables in wrong location
Satish Balay
balay at mcs.anl.gov
Tue Apr 11 10:49:10 CDT 2017
If you use a prefix install - after the install process - you would
Not use PETSC_ARCH. i.e
PETSC_ARCH=''
Satish
On Tue, 11 Apr 2017, Joachim Wuttke wrote:
> 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}.
>
>
>
More information about the petsc-users
mailing list