On Monday 11 April 2011, David Aiken wrote: > Hi all.. > > I'm using cmake 2.8.4 on Centos 5.2. I build a libUtility.so and a > libSecurity.so which depends on it. The utility library is located in > "../../lib/libUtility.so" during the build. If I do an ldd on > libSecurity.so I can see this relative path for libUtility.so in both the > build and install versions of the libSecurity.so library. I would like to > remove it, but have had no luck. From the docs it seems that the rpath > would be removed if I add "SET(CMAKE_SKIP_RPATH TRUE)" to the > CMakeLists.txt, but there is no change.
If you don't have any RPATH settings, in the build tree you will get the RPATH to the other library, but during "make install", that RPATH will be removed, so the installed binary will have an empty RPATH. Doesn't that work for you ? Alex _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
