cmake_modules/paths.cmake
changeset 9870 acf1ccf06b2d
parent 9861 2b4f9e1496c6
parent 9862 14292fb8d094
child 9950 2759212a27de
equal deleted inserted replaced
9861:2b4f9e1496c6 9870:acf1ccf06b2d
    53 
    53 
    54 #add the automatically determined parts of the RPATH
    54 #add the automatically determined parts of the RPATH
    55 #which point to directories outside the build tree to the install RPATH
    55 #which point to directories outside the build tree to the install RPATH
    56 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
    56 set(CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
    57 
    57 
    58 #paths where to find libraries (final slash not optional):
    58 if(APPLE)
    59 # - the first is relative to the executable
    59     #@rpath mangling
    60 # - the second is the same directory of the executable (so it runs in bin/)
    60     set(CMAKE_INSTALL_RPATH "@executable_path/../Frameworks")
    61 # - the third one is the full path of the system dir
    61     #install_name_tool for libraries
    62 #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html
    62     set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
    63 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    63 else(APPLE)
    64 
    64     #paths where to find libraries (final slash not optional):
    65 
    65     # - the first is relative to the executable
    66 #install_name_tool magic for OS X
    66     # - the second is the same directory of the executable (so it runs in bin/)
    67 set(CMAKE_INSTALL_NAME_DIR "@executable_path/../Frameworks")
    67     # - the third one is the full path of the system dir
    68 
    68     #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html
       
    69     set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
       
    70 endif(APPLE)