diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-07-03 23:45:27 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-07-03 23:45:27 +0000 |
commit | a98eacc458a303f769590c6af4bfae6920845a51 (patch) | |
tree | 674c7d82ae8065b70543104b07c066fe2175149a /modules/kde4_exec_via_sh.cmake | |
parent | 0779a7d525ef03ef4f1102cb5245b87c0206a36e (diff) | |
download | extra-cmake-modules-a98eacc458a303f769590c6af4bfae6920845a51.tar.gz extra-cmake-modules-a98eacc458a303f769590c6af4bfae6920845a51.tar.bz2 |
-use positive logic for macro_ensure_version(MIN found RESULT) -> result is true, if the vesion is ok
-first try at creating batch files under windows
-prepare a libexec install dir
-better check for visibility support: only for gcc >= 4.1 if not compiled with the mt allocator
Alex
svn path=/trunk/KDE/kdelibs/; revision=557782
Diffstat (limited to 'modules/kde4_exec_via_sh.cmake')
-rwxr-xr-x | modules/kde4_exec_via_sh.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/kde4_exec_via_sh.cmake b/modules/kde4_exec_via_sh.cmake index b105eb60..86e8fd06 100755 --- a/modules/kde4_exec_via_sh.cmake +++ b/modules/kde4_exec_via_sh.cmake @@ -1,4 +1,6 @@ +if (UNIX) + file(WRITE "${_filename}" "#!/bin/sh # created by cmake, don't edit, changes will be lost @@ -9,3 +11,14 @@ ${_library_path_variable}=${_ld_library_path}\${${_library_path_variable}+:\$${_ # make it executable # since this is only executed on UNIX, it is safe to call chmod exec_program(chmod ARGS ug+x \"${_filename}\" OUTPUT_VARIABLE _dummy ) + +else (UNIX) + +file(TO_NATIVE_PATH ${_ld_library_path} win_path) +file(WRITE "${_filename}" +" +set PATH=${win_path};${PATH} +\"${_executable}\" %* +") + +endif (UNIX) |