[CMake] OS X dynamic library install_name
Alexey Petruchik
i100500 at gmail.com
Mon Nov 26 11:04:56 EST 2012
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121126/fa12b3a6/attachment.htm>
More information about the CMake
mailing list