cmake_modules/paths.cmake
changeset 14301 3342358bc2c3
parent 14274 084af6d2685f
child 15334 7e3bd4030aa5
equal deleted inserted replaced
14300:20b08e59730d 14301:3342358bc2c3
    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 elseif(NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
    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