cmake_modules/paths.cmake
changeset 14253 084af6d2685f
parent 11329 ac6715709812
child 14280 3342358bc2c3
equal deleted inserted replaced
14252:bdc7ba72bbad 14253:084af6d2685f
    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 AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
    63 elseif(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