[CMake] OS X dynamic library install_name

David Cole david.cole at kitware.com
Mon Nov 26 11:25:13 EST 2012


http://cmake.org/cmake/help/v2.8.10/cmake.html#prop_tgt:INSTALL_NAME_DIR

On Mon, Nov 26, 2012 at 11:04 AM, Alexey Petruchik <i100500 at gmail.com> wrote:
> Hi, everybody. This question could have been already risen but hadn't found
> any "pretty" solution. The question is: How to set install name for OS X
> dynamic library to "@exectuable_path/../Frameworks/libX.dylib" or
> "@rpath/libX.dylib"? My solution is:
>
> set_target_properties(X PROPERTIES XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME
> "@executable_path/libX.dylib")
>
> but I'm still not sure that it is the way to go. In this case project would
> be built correctly only via generating Xcode project which is probably no
> very good. Are there any other way to specify install name or it is
> absolutely normal to use XCODE_ATTRIBUTE_LD_DYLIB_INSTALL_NAME?
>
> Regards, Alexey.
>
> --
>
> 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


More information about the CMake mailing list