aboutsummaryrefslogtreecommitdiff
path: root/modules/KDE4Macros.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-04-09 17:21:55 +0000
committerAlexander Neundorf <neundorf@kde.org>2006-04-09 17:21:55 +0000
commitc19deb1e9c1d2009b1cbf8eb53fa2f09c215506e (patch)
tree8f5892ca4ca2899dabbad94775dbd1abfe24d365 /modules/KDE4Macros.cmake
parenta1d53a7b0e72fc911d69c7225ae62cfc1f5d25bf (diff)
downloadextra-cmake-modules-c19deb1e9c1d2009b1cbf8eb53fa2f09c215506e.tar.gz
extra-cmake-modules-c19deb1e9c1d2009b1cbf8eb53fa2f09c215506e.tar.bz2
-better error handling in FindQt4.cmake
-use add_custom_command instead of add_custom_target(), saves one line of code Alex svn path=/trunk/KDE/kdelibs/; revision=527955
Diffstat (limited to 'modules/KDE4Macros.cmake')
-rw-r--r--modules/KDE4Macros.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index 1a6a356f..716d6379 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -403,14 +403,13 @@ macro (KDE4_HANDLE_RPATH _target_NAME _type)
get_target_property(_executable ${_target_NAME} LOCATION )
# use add_custom_target() to have the sh-wrapper generated during build time instead of cmake time
- add_custom_target(${_target_NAME}sh_target
+ add_custom_command(TARGET ${_target_NAME} POST_BUILD
COMMAND ${CMAKE_COMMAND}
-D_filename=${_executable}.sh -D_library_path_variable=${_library_path_variable}
-D_ld_library_path="${_ld_library_path}" -D_executable=${_executable}
-P ${KDE4_MODULE_DIR}/kde4_exec_via_sh.cmake
)
- add_dependencies(${_target_NAME} ${_target_NAME}sh_target)
macro_additional_clean_files(${_executable}.sh)
endif (UNIX)