summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorVolodymyr Medvid <medvid@users.noreply.github.com>2018-01-28 11:40:31 +0200
committerKonstantin <rilian-la-te@users.noreply.github.com>2018-01-28 12:40:31 +0300
commite01dec2dd8786449fac75fe88a405f35e1cb382f (patch)
tree2ddd4a9349295faff93ae474baa87d053e49dee6 /cmake
parent562384956ea0432b582356a2b73290a32e6c57b9 (diff)
downloadmusl-locales-e01dec2dd8786449fac75fe88a405f35e1cb382f.tar.gz
musl-locales-e01dec2dd8786449fac75fe88a405f35e1cb382f.tar.bz2
musl-locales-e01dec2dd8786449fac75fe88a405f35e1cb382f.tar.xz
musl-locales-e01dec2dd8786449fac75fe88a405f35e1cb382f.zip
Fix cmake install dirs (#3)
Diffstat (limited to 'cmake')
-rwxr-xr-xcmake/Translations.cmake2
-rw-r--r--cmake/TranslationsMusl.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/cmake/Translations.cmake b/cmake/Translations.cmake
index 1f36bb6..e81f9dc 100755
--- a/cmake/Translations.cmake
+++ b/cmake/Translations.cmake
@@ -20,7 +20,7 @@ macro (add_translations_directory NLS_PACKAGE)
add_custom_command (TARGET i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_OUTPUT} ${PO_INPUT})
install (FILES ${MO_OUTPUT} DESTINATION
- share/locale/${PO_INPUT_BASE}/LC_MESSAGES
+ ${CMAKE_INSTALL_DATAROOTDIR}/locale/${PO_INPUT_BASE}/LC_MESSAGES
RENAME ${NLS_PACKAGE}.mo
COMPONENT ${ARGV1})
endforeach (PO_INPUT ${PO_FILES})
diff --git a/cmake/TranslationsMusl.cmake b/cmake/TranslationsMusl.cmake
index 987a0cb..c2b23c4 100644
--- a/cmake/TranslationsMusl.cmake
+++ b/cmake/TranslationsMusl.cmake
@@ -20,6 +20,6 @@ macro (add_musl_translations_directory NLS_PACKAGE LOCPATH)
add_custom_command (TARGET musl-i18n COMMAND ${MSGFMT_EXECUTABLE} -o ${MO_OUTPUT} ${PO_INPUT})
install (FILES ${MO_OUTPUT} DESTINATION
- ${LOCPATH})
+ ${CMAKE_INSTALL_DATAROOTDIR}/${LOCPATH})
endforeach (PO_INPUT ${PO_FILES})
endmacro (add_musl_translations_directory)