Just to clarify, this is what I have locally (working on darwin8):
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
if (APPLE)
if (LLVM_HOST_OSX_VERSION VERSION_LESS "10.5")
set(CMAKE_INSTALL_NAME_DIR "@loader_path/../lib")
else()
set(CMAKE_INSTALL_NAME_DIR "@rpath")
endif()
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
else(UNIX)
if(NOT DEFINED CMAKE_INSTALL_RPATH)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
endif(NOT DEFINED CMAKE_INSTALL_RPATH)
endif()
(I have a cmake macro to define LLVM_HOST_OSX_VERSION that's not in trunk)
David
On 27 February 2014 18:15, David Fang <[email protected]> wrote:
Rafael,
I believe that you can revert r202302 back to use @rpath, which
should work on darwin9+, and then I'll post a patch to use @loader_path for
darwin8-only (or likely keep it local my darwin8 branch).
OK. Just one last attempt at avoid the "if (darwin8)": Argyrios, would
@loader_path be OK for libclang?
Cheers,
Rafael
--
David Fang
http://www.csl.cornell.edu/~fang/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits