<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Oct 15, 2015 at 5:08 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 15 Oct 2015, Sean Farley wrote:<br>
<br>
> > BTW: pragmatic is built with cmake, could that be messing it up somehow?<br>
><br>
> It might be missing the cmake rpath stuff on osx that uses<br>
> install_name_tool. If I recall, that isn't set by default.<br>
<br>
</span>Ok  <a href="https://bitbucket.org/petsc/pkg-metis/commits/42ab1971218c71b951ba507ca9f16718daae4f6a" rel="noreferrer" target="_blank">https://bitbucket.org/petsc/pkg-metis/commits/42ab1971218c71b951ba507ca9f16718daae4f6a</a><br>
<br>
So the following patch works.<br></blockquote><div><br></div><div>Satish and Sean, you rock.</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">
Satish<br>
<br>
------<br>
<br>
<br>
balay@imav^~/petsc/arch-darwin-c-debug/externalpackages/pragmatic((1344685...)) $ git diff |cat<br>
diff --git a/CMakeLists.txt b/CMakeLists.txt<br>
index ed6af70..d77f3ad 100644<br>
--- a/CMakeLists.txt<br>
+++ b/CMakeLists.txt<br>
@@ -121,6 +121,7 @@ file(GLOB C_SOURCES src/*.c)<br>
 file(GLOB CXX_SOURCES src/*.cpp)<br>
<br>
 # target_link_library<br>
+set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")<br>
 add_library(pragmatic SHARED ${C_SOURCES} ${CXX_SOURCES})<br>
 target_link_libraries(pragmatic ${PRAGMATIC_LIBRARIES})<br>
<br>
<br>
balay@imav^~/petsc(master) $ otool -L arch-darwin-c-debug/lib/libpragmatic.dylib<br>
arch-darwin-c-debug/lib/libpragmatic.dylib:<br>
        /Users/balay/petsc/arch-darwin-c-debug/lib/libpragmatic.dylib (compatibility version 0.0.0, current version 0.0.0)<br>
        /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.1.0)<br>
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1225.1.1)<br>
balay@imav^~/petsc(master) $ make test<br>
Running test examples to verify correct installation<br>
Using PETSC_DIR=/Users/balay/petsc and PETSC_ARCH=arch-darwin-c-debug<br>
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process<br>
Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process<br>
Completed test examples<br>
=========================================<br>
Now to evaluate the computer systems you plan use - do:<br>
make PETSC_DIR=/Users/balay/petsc PETSC_ARCH=arch-darwin-c-debug streams NPMAX=<number of MPI processes you intend to use><br>
balay@imav^~/petsc(master) $<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">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></div>