aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorChusslove Illich <caslav.ilic@gmx.net>2007-05-26 18:33:52 +0000
committerChusslove Illich <caslav.ilic@gmx.net>2007-05-26 18:33:52 +0000
commit0aa034d10384a532988c46cff9086cd00692cb45 (patch)
treef0d70d41106c46021f47739df10c6aaaad26f03c /modules
parent6b910fec68c1bb28f06e8833f4e2880300233a92 (diff)
downloadextra-cmake-modules-0aa034d10384a532988c46cff9086cd00692cb45.tar.gz
extra-cmake-modules-0aa034d10384a532988c46cff9086cd00692cb45.tar.bz2
Installation of PO files: do not rely on previous macro having been run.
svn path=/trunk/KDE/kdelibs/; revision=668553
Diffstat (limited to 'modules')
-rw-r--r--modules/KDE4Macros.cmake9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake
index da9663fe..0f82da9a 100644
--- a/modules/KDE4Macros.cmake
+++ b/modules/KDE4Macros.cmake
@@ -232,10 +232,11 @@ macro(KDE4_CREATE_PO_FILES)
endmacro(KDE4_CREATE_PO_FILES)
macro(KDE4_INSTALL_PO_FILES _lang)
- 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)
+ file(GLOB _po_files *.po)
+ foreach(_current_PO_FILES ${_po_files})
+ get_filename_component(_basename ${_current_PO_FILES} NAME_WE)
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${_basename}.gmo DESTINATION ${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES/ RENAME ${_basename}.mo)
+ endforeach(_current_PO_FILES)
endmacro(KDE4_INSTALL_PO_FILES)
macro(KDE4_INSTALL_TS_FILES _lang _sdir)