X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=po%2FCMakeLists.txt;fp=po%2FCMakeLists.txt;h=303ad2375331dde8ecf1278ad56b04c8e854a7d5;hp=9f8b2b274697ebaeaa74e11996c3639e5154efbf;hb=fb6992776bc7f34be2118b095367a9d52657e9e1;hpb=d37d8399f02fcdd9093d17f728c71af445ca56df diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 9f8b2b27..303ad237 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -33,8 +33,8 @@ else(QT_LCONVERT_EXECUTABLE) message(STATUS "WARNING: lconvert not found, you won't have translations!") endif(QT_LCONVERT_EXECUTABLE) -# For a static build, we need to include Qt translations if available -if(STATIC AND QT_TRANSLATIONS_DIR) +# For a static or win32 build, we need to include Qt translations if available +if((STATIC OR WIN32) AND QT_TRANSLATIONS_DIR) foreach(LANG ${gen_linguas}) file(GLOB lang_files ${QT_TRANSLATIONS_DIR}/qt_${LANG}*.qm) foreach(absfile ${lang_files}) @@ -44,7 +44,7 @@ if(STATIC AND QT_TRANSLATIONS_DIR) list(APPEND qm_files ${CMAKE_CURRENT_BINARY_DIR}/${filename}) endforeach(absfile ${lang_files}) endforeach(LANG ${gen_linguas}) -endif(STATIC AND QT_TRANSLATIONS_DIR) +endif((STATIC OR WIN32) AND QT_TRANSLATIONS_DIR) # Write resource file set(resfile ${CMAKE_CURRENT_BINARY_DIR}/i18n.qrc)