equal
deleted
inserted
replaced
58 if(APPLE) |
58 if(APPLE) |
59 #@rpath mangling |
59 #@rpath mangling |
60 set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks") |
60 set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks") |
61 #install_name_tool for libraries |
61 #install_name_tool for libraries |
62 set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks") |
62 set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks") |
63 else(APPLE) |
63 else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr")) |
64 #paths where to find libraries (final slash not optional): |
64 #paths where to find libraries (final slash not optional): |
65 # - the first is relative to the executable |
65 # - the first is relative to the executable |
66 # - the second is the same directory of the executable (so it runs in bin/) |
66 # - the second is the same directory of the executable (so it runs in bin/) |
67 # - the third one is the full path of the system dir |
67 # - the third one is the full path of the system dir |
68 #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html |
68 #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html |
|
69 #skip this if the install prefix is the standard one |
69 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/") |
70 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/") |
70 endif(APPLE) |
71 endif(APPLE) |