Hi,<br><br><div>I&#39;ve been trying to figure out how to append another directory to the -rpath sent to the linker through cmake.</div><div><br></div><div>I have a yum-installed version of stdlibs in /usr/lib64, and a svn source built one in /usr/local/lib64.  I need the newer version for software that I&#39;m developing, but would like to have everything else on the system run the version in /usr/lib64 because it&#39;s the version everything&#39;s expecting, and it&#39;s an actual release version rather than an svn build.</div>
<div><br></div><div>The /usr/lib64 and /usr/local/lib64 versions are both .so.6, so ldconfig shouldn&#39;t be able to help me out.</div><div><br></div><div>I&#39;m using export ld_library_path=/usr/local/lib64 as a workaround when running my applications at the moment, but don&#39;t want that to be automatically set because it will impact other programs.</div>
<div><br></div><div><br></div><div>I&#39;ve looked at add_library_path, cmake_skip_build_rpath, cmake_build_with_install_rpath, cmake_install_rpath, cmake_install_rpath_use_link_path, and cmake_system_library_path, none of which seem to work or be what I need.</div>
<div><br></div><div><br></div><div>So, whether adding to -rpath is what I need to do or not, is there a way with cmake that I can specify which stdlibs my applications are being statically linked against?</div><div><br>Thanks!<br>
<br>Mike<br>
</div>