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

Reply via email to