cmake_modules/paths.cmake
changeset 9225 d8d929f92633
parent 9224 bce8cf41d666
child 9226 1ac020f959e5
equal deleted inserted replaced
9224:bce8cf41d666 9225:d8d929f92633
    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     append_linker_flag("-zorigin")
    65     #apply RPATH settings to pascal and haskell executables
    65     #apply RPATH settings to pascal and haskell executables
    66     list(APPEND pascal_flags "-k-rpath" "-k'${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 
    70 #add the automatically determined parts of the RPATH
    70 #add the automatically determined parts of the RPATH
    71 #which point to directories outside the build tree to the install RPATH
    71 #which point to directories outside the build tree to the install RPATH