Hello all,<br><br>I am trying to compile Paraview 3.12 on my x86_64 
Fedora 15 workstation.  My main interest is in offscreen rendering so I 
had to build my own Mesa libraries (7.5.2) with OSMesa.  The system 
OSMesa libraries are not set up properly (or the wrong version) and so 
if I link to them, pvpython segfaults when attempting to do offscreen 
rendering.  If I set my LD_LIBRARY_PATH to include my 7.5.2 Mesa 
libraries then offscreen rendering works fine.  However, I don&#39;t want my
 system as a whole to use my separate Mesa libraries; only Paraview.  
Normally I would accomplish this using the -rpath option.  However 
during the &quot;make install&quot; process, cmake strips the runtime path from 
the executables.  How do I stop this?<br>
<br>In my Cmake file, I have the flag<br><br>//If set, runtime paths are not added when using shared libraries.<br>CMAKE_SKIP_RPATH:BOOL=NO<br><br>but this doesn&#39;t seem to do the trick.<br><br>Based on this page <a href="http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set_target_properties" target="_blank">http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set_target_properties</a> it seems there are additional variables I can set<br clear="all">

<br>INSTALL_RPATH<br>INSTALL_RPATH_USE_LINK_PATH<br>SKIP_BUILD_RPATH <br>BUILD_WITH_INSTALL_RPATH <br>CMAKE_INSTALL_RPATH, CMAKE_INSTALL_RPATH_USE_LINK_<div id=":183">PATH, 
CMAKE_SKIP_BUILD_RPATH, CMAKE_BUILD_WITH_INSTALL_RPATH, and 
CMAKE_INSTALL_NAME_DIR<br><br>As it takes a while to recompile each time
 I try a different combination of flags, can someone tell me the magic 
combination of variables which allow me set (and _keep_) my -rpath?<br><br>Thanks,<br>
Peter.<div class="yj6qo ajU"><div id=":18v" class="ajR" tabindex="0"><img class="ajT" src="images/cleardot.gif"></div></div></div><br clear="all"><br>-- <br><span style="border-collapse:separate;color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:-webkit-auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><font size="1"><font><span style="color:rgb(102,102,102)">Peter Brady, Ph.D.</span><br style="color:rgb(102,102,102)">
<span style="color:rgb(102,102,102)">
</span><span style="color:rgb(102,102,102)">Postdoctoral Research Associate</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">
 </span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">
Sibley School of Mechanical and Aerospace Engineering</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">
Cornell University</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">
191 Grumman Hall</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)">
Ithaca, NY 14853-7501</span><br style="color:rgb(102,102,102)"><span style="color:rgb(102,102,102)"></span><span style="color:rgb(102,102,102)"></span><a style="color:rgb(51,102,255)" href="mailto:olivier.desjardins@cornell.edu" target="_blank">peter.brady@cornell.edu</a></font><br>

</font><br></span><br>