cmake_modules/paths.cmake
changeset 15318 7e3bd4030aa5
parent 14285 3342358bc2c3
child 15486 58ce582ae87d
equal deleted inserted replaced
15317:5b2dec63f4cf 15318:7e3bd4030aa5
    57 
    57 
    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_BUILD_WITH_INSTALL_NAME_DIR TRUE)
    62     set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
    63     set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
    63 else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
    64 else(APPLE AND NOT (${CMAKE_INSTALL_PREFIX} MATCHES "/usr"))
    64     #paths where to find libraries (final slash not optional):
    65     #paths where to find libraries (final slash not optional):
    65     # - the first is relative to the executable
    66     # - the first is relative to the executable
    66     # - the second is the same directory of the executable (so it runs in bin/)
    67     # - the second is the same directory of the executable (so it runs in bin/)