<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Sep 20, 2018 at 7:47 AM David Sommer <<a href="mailto:david97sommer@gmail.com">david97sommer@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div>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 <br>"(missing: PETSC_EXECUTABLE_RUNS)"<br></div><div>In CMakeError.log i have <br></div><div>"error while loading shared libraries: libpetsc.so.3.9: cannot open shared object file: No such file or directory"</div><div>So i manually set $LD_LIBRARY_PATH and $LIBRARY_PATH, both to $PETSC_DIR/$PETSC_ARCH.</div></div></div></div></div></div></div></div></blockquote><div><br></div><div>I do not believe that is correct. I think you need</div><div><br></div><div> $PETSC_DIR/$PETSC_ARCH/lib</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div> Additionally, because of <br></div><div><a href="http://jacobmerson.com/2016/01/17/cmake-petsc2.html" target="_blank">http://jacobmerson.com/2016/01/17/cmake-petsc2.html</a></div><div>i ran CMake with <br>cmake .. -D CMAKE_C_COMPILER=$(which mpicc) -D CMAKE_CXX_COMPILER=$(which mpicxx)</div><div>Where did i go wrong? <br></div><div><br></div><div>Thanks</div><div>David Sommer<br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>