[vtkusers] How to force cmake not to remove install rpath

Brad King brad.king at kitware.com
Wed Jun 5 10:55:39 EDT 2013


On 06/05/2013 01:07 AM, Ondřej Čertík wrote:
> -- Installing: /auto/nest/nest/u/ondrej/repos/python-hpcmp2/opt/vtk/hfj6/lib/libvtkCommonDataModel-6.0.so
> -- Removed runtime path from "/auto/nest/nest/u/ondrej/repos/python-hpcmp2/opt/vtk/hfj6/lib/libvtkCommonDataModel-6.0.so.1"

This is expected.  CMake builds with the rpath for the build tree
and that is not valid for the install tree.  If you want to set the
rpath for the install tree for all targets then use

 -DCMAKE_INSTALL_RPATH:STRING="/first/path:/second/path"

Then instead of removing the rpath during install CMake will replace it
with this value.  This should work for the python modules too.

-Brad



More information about the vtkusers mailing list