cmake_modules/paths.cmake
changeset 9231 e704a6a5101a
parent 9226 1ac020f959e5
child 9232 571e55b32da5
--- a/cmake_modules/paths.cmake	Fri Jun 14 01:11:22 2013 +0200
+++ b/cmake_modules/paths.cmake	Fri Jun 14 01:24:41 2013 +0200
@@ -63,7 +63,7 @@
     #make sure $ORIGIN is respected
     add_linker_flag("-zorigin")
     #apply RPATH settings to pascal and haskell executables
-    add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath '${CMAKE_INSTALL_RPATH_ESCAPED}'")
+    add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath -k'${CMAKE_INSTALL_RPATH_ESCAPED}'")
     list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
 endif()