diff options
| author | Aurélien Gâteau <agateau@kde.org> | 2014-05-20 15:02:00 +0200 | 
|---|---|---|
| committer | Aurélien Gâteau <agateau@kde.org> | 2014-05-26 16:05:56 +0200 | 
| commit | 93fe5c4acbb64988213d295a257ba747f5de554c (patch) | |
| tree | c82432123f8b4075c5c36fd6d9a542707e368ccf /modules | |
| parent | edbefdaa47ba2af0f6472e6740e72870e4eb94fa (diff) | |
| download | extra-cmake-modules-93fe5c4acbb64988213d295a257ba747f5de554c.tar.gz extra-cmake-modules-93fe5c4acbb64988213d295a257ba747f5de554c.tar.bz2 | |
Skip non-directory files inside the po/ directory
REVIEW: 118216
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/ECMPoQmTools.cmake | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/modules/ECMPoQmTools.cmake b/modules/ECMPoQmTools.cmake index e217dd3e..3ce69581 100644 --- a/modules/ECMPoQmTools.cmake +++ b/modules/ECMPoQmTools.cmake @@ -188,13 +188,13 @@ function(ecm_install_po_files_as_qm podir)          set(install_destination share/locale)      endif() -    file(GLOB lang_dirs "${podir}/*") -    foreach(lang_dir ${lang_dirs}) -        file(GLOB po_files "${lang_dir}/*.po") -        get_filename_component(lang ${lang_dir} NAME) +    file(GLOB po_files "${podir}/*/*.po") +    foreach(po_file ${po_files}) +        get_filename_component(po_dir ${po_file} DIRECTORY) +        get_filename_component(lang ${po_dir} NAME)          ecm_process_po_files_as_qm(              ${lang} ALL -            PO_FILES ${po_files} +            PO_FILES ${po_file}              INSTALL_DESTINATION ${install_destination}          )      endforeach() | 
