cmake_modules/paths.cmake
changeset 9226 1ac020f959e5
parent 9225 d8d929f92633
child 9231 e704a6a5101a
equal deleted inserted replaced
9225:d8d929f92633 9226:1ac020f959e5
    59 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    59 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    60 set(CMAKE_INSTALL_RPATH_ESCAPED "$$ORIGIN/../${target_library_install_dir}/:$$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    60 set(CMAKE_INSTALL_RPATH_ESCAPED "$$ORIGIN/../${target_library_install_dir}/:$$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    61 
    61 
    62 if(UNIX AND NOT APPLE)
    62 if(UNIX AND NOT APPLE)
    63     #make sure $ORIGIN is respected
    63     #make sure $ORIGIN is respected
    64     append_linker_flag("-zorigin")
    64     add_linker_flag("-zorigin")
    65     #apply RPATH settings to pascal and haskell executables
    65     #apply RPATH settings to pascal and haskell executables
    66     add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath '${CMAKE_INSTALL_RPATH_ESCAPED}'")
    66     add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath '${CMAKE_INSTALL_RPATH_ESCAPED}'")
    67     list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
    67     list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
    68 endif()
    68 endif()
    69 
    69