Scenario: A library libA.dylib is found somewhere in the building of executable B. Doing the typical link, otool -L shows that B references:
libA.dylib or possibly /A/prefix/lib/libA.dylib. I want B to run from either the build directory or the installation directory, which I want to be portable. A possible solution is to have libA.dylib encoded into B as: @rpath/libA.dylib and then to put @loader_path/ and /A/installdir/lib into the rpath of B, and finally to install libA.dylib alongside B. What is the best way to get this done using CMake? What other approaches are there to this basic problem? Thx.....John Cary _______________________________________________ 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