diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-04-10 21:42:33 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-04-10 21:42:33 +0000 |
commit | ecb102a1f8944fecd1555fb4f98a04f4c1f7ff1b (patch) | |
tree | 9bfdc240da2245c5029eb2da5f090f8c53381f31 | |
parent | 37e97e7ae605fdff2aa7b1beda154ba0ae015555 (diff) | |
download | extra-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-x | modules/kde4_exec_via_sh.cmake | 4 |
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 ) |