[petsc-users] CMake error
David Sommer
david97sommer at gmail.com
Thu Sep 20 06:46:16 CDT 2018
Hi,
i am trying to build my project with CMake. For PETSc i use the
FindPETSc.cmake Module from Barry's repository. Unfortunately
FindPackage(PETSc) fails with
"(missing: PETSC_EXECUTABLE_RUNS)"
In CMakeError.log i have
"error while loading shared libraries: libpetsc.so.3.9: cannot open shared
object file: No such file or directory"
So i manually set $LD_LIBRARY_PATH and $LIBRARY_PATH, both to
$PETSC_DIR/$PETSC_ARCH. Additionally, because of
http://jacobmerson.com/2016/01/17/cmake-petsc2.html
i ran CMake with
cmake .. -D CMAKE_C_COMPILER=$(which mpicc) -D CMAKE_CXX_COMPILER=$(which
mpicxx)
Where did i go wrong?
Thanks
David Sommer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20180920/3924527e/attachment.html>
More information about the petsc-users
mailing list