aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-04-10 21:42:33 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-04-10 21:42:33 +0000
commitecb102a1f8944fecd1555fb4f98a04f4c1f7ff1b (patch)
tree9bfdc240da2245c5029eb2da5f090f8c53381f31
parent37e97e7ae605fdff2aa7b1beda154ba0ae015555 (diff)
downloadextra-cmake-modules-ecb102a1f8944fecd1555fb4f98a04f4c1f7ff1b.tar.gz
extra-cmake-modules-ecb102a1f8944fecd1555fb4f98a04f4c1f7ff1b.tar.bz2
-handling paths containing spaces seems to be a major problem, at least here
on FreeBSD without the double qoutes LD_LIBRARY_PATH works at least, and the added double qoutes help in finding the executable, but now dcopidl2cpp complains about the space in the path to the kidl file, and no qoutes and no backslashes help :-/ Alex P.S. if this breaks the build on other systems, feel free to revert CCMAIL: kde-buildsystem@kde.org svn path=/trunk/KDE/kdelibs/; revision=528380
-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 e3eb8328..14d2eca7 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} \"${_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 755 \"${_filename}\" OUTPUT_VARIABLE _dummy )