cmake_modules/paths.cmake
changeset 9231 e704a6a5101a
parent 9226 1ac020f959e5
child 9232 571e55b32da5
equal deleted inserted replaced
9230:035cc97de6aa 9231:e704a6a5101a
    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     add_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 -k'${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