[CMake] padding link arguments to the linker

Brad King brad.king at kitware.com
Wed Feb 8 10:37:52 EST 2006


Brad King wrote:
> The VTK CMake code provides an interface to allow some customization of 
> the build.  Create a file Common/LocalUserOptions.cmake in either the 
> VTK build tree or the source tree.  Add this line:
> 
> SET_TARGET_PROPERTIES(vtkCommon PROPERTIES LINK_FLAGS
>  "-install_name @executable_path/../Plugins/libvtkCommon.dylib")

You might also be interested in this tool:

http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/install_name_tool.1.html

-Brad


More information about the CMake mailing list