[CMake] another RPATH problem

Brad King brad.king at kitware.com
Thu Jun 15 10:14:24 EDT 2006


Alexander Neundorf wrote:
> Attached you can find a patch against current cvs which adds an option with the nice name CMAKE_USE_EXTERNAL_RPATH_FOR_INSTALL, which if enabled has the effect that lib dirs which are outside the build- and source tree are added to the install RPATH.

Okay, I've implemented it as a target property called 
INSTALL_RPATH_USE_LINK_PATH that is initialized from the variable 
CMAKE_INSTALL_RPATH_USE_LINK_PATH.  It causes the linker search path 
directories not in the project to be appended to the INSTALL_RPATH when 
the target is built for installation.

-Brad


More information about the CMake mailing list