summaryrefslogtreecommitdiffstats
path: root/CMakeScripts/InstallMSYS2.cmake
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2017-07-28 22:05:28 +0000
committerMarc Jeanmougin <marc@jeanmougin.fr>2017-07-28 22:05:28 +0000
commit3eb67b103fe69a3b42ec16d085a2cb3a58a596b7 (patch)
tree986b33696b0a7f229589b85bd13e6fdb2cbd022a /CMakeScripts/InstallMSYS2.cmake
parentfix typo, update CI (diff)
parentShow a control point for the center of a spiral (diff)
downloadinkscape-3eb67b103fe69a3b42ec16d085a2cb3a58a596b7.tar.gz
inkscape-3eb67b103fe69a3b42ec16d085a2cb3a58a596b7.zip
Merge gitlab.com:inkscape/inkscape
Diffstat (limited to 'CMakeScripts/InstallMSYS2.cmake')
-rw-r--r--CMakeScripts/InstallMSYS2.cmake16
1 files changed, 10 insertions, 6 deletions
diff --git a/CMakeScripts/InstallMSYS2.cmake b/CMakeScripts/InstallMSYS2.cmake
index 3bad4b839..5ad3b9d3e 100644
--- a/CMakeScripts/InstallMSYS2.cmake
+++ b/CMakeScripts/InstallMSYS2.cmake
@@ -143,12 +143,16 @@ if(WIN32)
DESTINATION share/icons)
# translations for libraries (we usually shouldn't need many)
- install(DIRECTORY ${MINGW_PATH}/share/locale
- DESTINATION share
- FILES_MATCHING
- PATTERN "*glib20.mo"
- PATTERN "*gtk30.mo"
- PATTERN "*gtkspell3.mo")
+ file(GLOB inkscape_translations RELATIVE ${CMAKE_SOURCE_DIR}/po/ ${CMAKE_SOURCE_DIR}/po/*.po)
+ foreach(translation ${inkscape_translations})
+ get_filename_component(translation ${translation} NAME_WE)
+ install(DIRECTORY ${MINGW_PATH}/share/locale/${translation}
+ DESTINATION share/locale
+ FILES_MATCHING
+ PATTERN "*glib20.mo"
+ PATTERN "*gtk30.mo"
+ PATTERN "*gtkspell3.mo")
+ endforeach()
install(DIRECTORY ${MINGW_PATH}/share/poppler
DESTINATION share)