diff options
author | Chusslove Illich <caslav.ilic@gmx.net> | 2007-05-24 22:35:46 +0000 |
---|---|---|
committer | Chusslove Illich <caslav.ilic@gmx.net> | 2007-05-24 22:35:46 +0000 |
commit | 6b910fec68c1bb28f06e8833f4e2880300233a92 (patch) | |
tree | c215a8836894a6ef19e3ce20bb9d4d2718f8e209 | |
parent | ca94885ece739ce74d2522803fb931c696985654 (diff) | |
download | extra-cmake-modules-6b910fec68c1bb28f06e8833f4e2880300233a92.tar.gz extra-cmake-modules-6b910fec68c1bb28f06e8833f4e2880300233a92.tar.bz2 |
Fix installation of PO files.
svn path=/trunk/KDE/kdelibs/; revision=668052
-rw-r--r-- | modules/KDE4Macros.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 030a4f2d..da9663fe 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -232,11 +232,10 @@ macro(KDE4_CREATE_PO_FILES) endmacro(KDE4_CREATE_PO_FILES) macro(KDE4_INSTALL_PO_FILES _lang) - file(GLOB _po_files ${CMAKE_CURRENT_BINARY_DIR}/*.gmo) - foreach(_current_PO_FILES ${_po_files}) - get_filename_component(_basename ${_current_PO_FILES} NAME_WE) - install(FILES ${_current_PO_FILES} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME ${_basename}.mo) - endforeach(_current_PO_FILES) + foreach(_current_GMO_FILES ${_list_gmo}) + get_filename_component(_basename ${_current_GMO_FILES} NAME_WE) + install(FILES ${_current_GMO_FILES} DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME ${_basename}.mo) + endforeach(_current_GMO_FILES) endmacro(KDE4_INSTALL_PO_FILES) macro(KDE4_INSTALL_TS_FILES _lang _sdir) |