From ecb102a1f8944fecd1555fb4f98a04f4c1f7ff1b Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Mon, 10 Apr 2006 21:42:33 +0000 Subject: -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 --- modules/kde4_exec_via_sh.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') 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 ) -- cgit v1.2.1