jedbrown / cmake-modules

CMake modules for some scientific libraries
BSD 2-Clause "Simplified" License
87 stars 54 forks source link

Issue for FindPetsc.cmake on Ubuntu 16.04 #16

Open arthurtalpaert opened 8 years ago

arthurtalpaert commented 8 years ago

Hello, FindPETSc.cmake does not work on Ubuntu 16.04. This is because the directory structure of /usr/lib/petscdir/3.6.2 does not correspond to a usual one (e.g. as on Ubuntu 14.04). The directory /usr/lib/petscdir/3.6.2 only contains a single directory, with the architecture as its name (e.g. linux-gnu-c-opt). It does not contain bin, conf, include, lib.

jedbrown commented 8 years ago

It sounds like you need PETSC_DIR=/usr/lib/petscdir/3.6.2 PETSC_ARCH=linux-gnu-c-opt.

arthurtalpaert commented 8 years ago

Thank you for your answer! Unfortunately, it did not work and I got the following error: The pair PETSC_DIR=/usr/lib/petscdir/3.6.2 PETSC_ARCH=linux-gnu-c-opt do not specify a valid PETSc installation. I also tried PETSC_ARCH=i386-linux-gnu-real on my 32bit virtual machine and it failed too. I can do other tests if you want me to.