diff options
-rw-r--r-- | modules/FindGettext.cmake | 26 | ||||
-rw-r--r-- | modules/KDE4Macros.cmake | 24 |
2 files changed, 29 insertions, 21 deletions
diff --git a/modules/FindGettext.cmake b/modules/FindGettext.cmake index b461fe51..121c59a5 100644 --- a/modules/FindGettext.cmake +++ b/modules/FindGettext.cmake @@ -139,17 +139,21 @@ MACRO(GETTEXT_PROCESS_POT_FILE _potFile) SET(_addToAll) SET(_installDest) - LIST(GET _args 0 _tmp) - IF("${_tmp}" STREQUAL "ALL") - SET(_addToAll ALL) - LIST(REMOVE_AT _args 0) - ENDIF("${_tmp}" STREQUAL "ALL") - - 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 "ALL") + SET(_addToAll ALL) + LIST(REMOVE_AT _args 0) + ENDIF("${_tmp}" STREQUAL "ALL") + ENDIF(_args) + + 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(_potBasename ${_potFile} NAME_WE) GET_FILENAME_COMPONENT(_absPotFile ${_potFile} ABSOLUTE) 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) |