aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmodules/kde4_exec_via_sh.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/kde4_exec_via_sh.cmake b/modules/kde4_exec_via_sh.cmake
index 14d2eca7..c8060b9a 100755
--- a/modules/kde4_exec_via_sh.cmake
+++ b/modules/kde4_exec_via_sh.cmake
@@ -3,9 +3,9 @@ file(WRITE "${_filename}"
"#!/bin/sh
# created by cmake, don't edit, changes will be lost
-${_library_path_variable}=${_ld_library_path}:$${_library_path_variable} \"${_executable}\" $@
+${_library_path_variable}=${_ld_library_path}\${${_library_path_variable}+:${_library_path_variable}} \"${_executable}\" \"$@\"
")
# make it executable
# since this is only executed on UNIX, it is safe to call chmod
-exec_program(chmod ARGS 755 \"${_filename}\" OUTPUT_VARIABLE _dummy )
+exec_program(chmod ARGS ug+x \"${_filename}\" OUTPUT_VARIABLE _dummy )