From 708473aa3339b90f03c8f774b5067dba64cc92f1 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 8 Apr 2006 20:05:12 +0000 Subject: -generate the shell-wrappers for the executables during buildtime instead of cmake time, and remove them when "cleaning" Alex svn path=/trunk/KDE/kdelibs/; revision=527599 --- modules/kde4_exec_via_sh.cmake | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'modules/kde4_exec_via_sh.cmake') diff --git a/modules/kde4_exec_via_sh.cmake b/modules/kde4_exec_via_sh.cmake index 148f87e7..e3eb8328 100755 --- a/modules/kde4_exec_via_sh.cmake +++ b/modules/kde4_exec_via_sh.cmake @@ -1,6 +1,11 @@ -#!/bin/sh -# created by cmake, don't edit, changes will be lost +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 ) -- cgit v1.2.1