[CMake] rpath trouble on macosx: cmake 2.8.9 ignores INSTALL_NAME_DIR and INSTALL_RPATH?
David Cole
dlrdave at aol.com
Tue Sep 10 13:32:35 EDT 2013
The clue is probably that RPATH support on the Mac is "behind" and has
only recently been merged to master... -- although you didn't say
exactly how much you'd be willing to pay for a clue... :-)
Here are some related commits:
http://cmake.org/gitweb?p=cmake.git&a=search&h=refs%2Fheads%2Fmaster&st=commit&s=RPATH
They are in master now, and should also be in the release candidates of
CMake 2.8.12.
Looks like you need to set the target property MACOSX_RPATH to 1 in
addition to what you're already doing. And also use CMake 2.8.12-rc* or
a build of CMake from 'master'.
Also, some adjustments are made at "make install" time, although since
you're using BUILD_WITH_INSTALL_RPATH, that fact should be irrelevant
in your case...
HTH,
David
More information about the CMake
mailing list