Like this? still in trouble though...

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

set(PETSC_DIR /home/hzh225/LIB_CFD/nP/petsc-3.5.2)
set(PETSC_ARCH /home/hzh225/LIB_CFD/nP/petsc-3.5.2/linux-gnu-intel)

SET(CMAKE_MODULE_PATH "./cmake-modules-master")
FIND_PACKAGE(PETSc REQUIRED)


CMake Error at cmake-modules-master/FindPETSc.cmake:122 (message):
  The pair PETSC_DIR=/home/hzh225/LIB_CFD/nP/petsc-3.5.2
  PETSC_ARCH=/home/hzh225/LIB_CFD/nP/petsc-3.5.2/linux-gnu-intel do not
  specify a valid PETSc installation
Call Stack (most recent call first):
  CMakeLists.txt:15 (FIND_PACKAGE)

Huaibao (Paul) Zhang
*Gas Surface Interactions Lab*
Department of Mechanical Engineering
University of Kentucky,
Lexington,
KY, 40506-0503
*Office*: 216 Ralph G. Anderson Building
*Web*:gsil.engineering.uky.edu

On Mon, Dec 1, 2014 at 10:01 PM, Jed Brown <[email protected]> wrote:

> paul zhang <[email protected]> writes:
>
> > Some error messages attached.
> >
> > -- Detecting CXX compiler ABI info - done
> > CMake Error at
> >
> /share/cluster/RHEL5.4/x86_64/apps/cmake/2.8.4/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:91
> > (MESSAGE):
> >   PETSc could not be found.  Be sure to set PETSC_DIR and PETSC_ARCH.
>
> Please heed the line above.
>

Reply via email to