X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=i18n%2FCMakeLists.txt;h=8d59abf9fda8d77bbd89e13d7c64a977343b5c12;hb=ff0eb87665d476b39f2f3b192b8db31627e44adb;hp=a8b40684563e4884c2ef0c6a94d0c12c3b0b9385;hpb=318483ddb3de556a4014cb2d5b5e6cd58b0718e2;p=quassel.git diff --git a/i18n/CMakeLists.txt b/i18n/CMakeLists.txt index a8b40684..8d59abf9 100644 --- a/i18n/CMakeLists.txt +++ b/i18n/CMakeLists.txt @@ -22,7 +22,9 @@ if(QT_LRELEASE_EXECUTABLE) list(APPEND gen_linguas ${lang}) endif(flg) endforeach(TS_FILE ${avail_tsfiles}) - list(REMOVE_DUPLICATES gen_linguas) + if(gen_linguas) + list(REMOVE_DUPLICATES gen_linguas) + endif(gen_linguas) message(STATUS "Including languages: ${gen_linguas}") else(QT_LRELEASE_EXECUTABLE) message(STATUS "WARNING: lrelease not found, you won't have translations!") @@ -52,7 +54,7 @@ endforeach(file ${qm_files}) file(APPEND ${resfile} "\n\n") #add_custom_command(OUTPUT ${resfile} DEPENDS ${qm_files}) -set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${qm_files} i18n.qrc") +set_directory_properties(PROPERTIES ADDITIONAL_MAKE_CLEAN_FILES "${qm_files};i18n.qrc") if(EMBED_DATA) set(COMMON_RCS ${COMMON_RCS} ${resfile} PARENT_SCOPE)