cmake_modules/paths.cmake
changeset 15313 7e3bd4030aa5
parent 14280 3342358bc2c3
child 15481 58ce582ae87d
equal deleted inserted replaced
15312:5b2dec63f4cf 15313: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/)