diff options
| author | Alexander Neundorf <neundorf@kde.org> | 2007-08-16 02:18:48 +0000 | 
|---|---|---|
| committer | Alexander Neundorf <neundorf@kde.org> | 2007-08-16 02:18:48 +0000 | 
| commit | 2f2f14289d4a63d53140fdbd336890f51d332a78 (patch) | |
| tree | c38a53796cb78fe0f200dfab061bf505167d0356 /modules/KDE4Macros.cmake | |
| parent | 00b3f6e99df7075d56e07edc8a90c4794744f2ec (diff) | |
| download | extra-cmake-modules-2f2f14289d4a63d53140fdbd336890f51d332a78.tar.gz extra-cmake-modules-2f2f14289d4a63d53140fdbd336890f51d332a78.tar.bz2 | |
also work if used with too few arguments
Alex
svn path=/trunk/KDE/kdelibs/; revision=700613
Diffstat (limited to 'modules/KDE4Macros.cmake')
| -rw-r--r-- | modules/KDE4Macros.cmake | 24 | 
1 files changed, 14 insertions, 10 deletions
| diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 2ddd8d70..b857ac4f 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -293,18 +293,22 @@ macro (KDE4_CREATE_HANDBOOK _docbook)  #   set(_args ${ARGN})  #  #   set(_installDest) -#   list(GET _args 0 _tmp) -#   if("${_tmp}" STREQUAL "INSTALL_DESTINATION") -#      list(GET _args 1 _installDest ) -#      list(REMOVE_AT _args 0 1) -#   endif("${_tmp}" STREQUAL "INSTALL_DESTINATION") +#   if(_args) +#      list(GET _args 0 _tmp) +#      if("${_tmp}" STREQUAL "INSTALL_DESTINATION") +#         list(GET _args 1 _installDest ) +#         list(REMOVE_AT _args 0 1) +#      endif("${_tmp}" STREQUAL "INSTALL_DESTINATION") +#   endif(_args)  #  #   get_filename_component(dirname ${CMAKE_CURRENT_SOURCE_DIR} NAME_WE) -#   list(GET _args 0 _tmp) -#   if("${_tmp}" STREQUAL "SUBDIR") -#      list(GET _args 1 dirname ) -#      list(REMOVE_AT _args 0 1) -#   endif("${_tmp}" STREQUAL "SUBDIR") +#   if(_args) +#      list(GET _args 0 _tmp) +#      if("${_tmp}" STREQUAL "SUBDIR") +#         list(GET _args 1 dirname ) +#         list(REMOVE_AT _args 0 1) +#      endif("${_tmp}" STREQUAL "SUBDIR") +#   endif(_args)  #  #   if(_installDest)  #      file(GLOB _images *.png) | 
