cmake_modules/paths.cmake
changeset 9225 d8d929f92633
parent 9224 bce8cf41d666
child 9226 1ac020f959e5
--- a/cmake_modules/paths.cmake	Thu Jun 13 22:27:23 2013 +0200
+++ b/cmake_modules/paths.cmake	Thu Jun 13 22:50:18 2013 +0200
@@ -63,7 +63,7 @@
     #make sure $ORIGIN is respected
     append_linker_flag("-zorigin")
     #apply RPATH settings to pascal and haskell executables
-    list(APPEND pascal_flags "-k-rpath" "-k'${CMAKE_INSTALL_RPATH_ESCAPED}'")
+    add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath '${CMAKE_INSTALL_RPATH_ESCAPED}'")
     list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
 endif()