From 7d900c2f32f45664bd28854042101e34d88c568d Mon Sep 17 00:00:00 2001 From: David Seifert Date: Thu, 25 May 2017 12:30:01 +0200 Subject: [PATCH] Use GNUInstallDirs for specifying default install directories --- GettextTranslate.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GettextTranslate.cmake b/GettextTranslate.cmake index 6359c89..7e2b93f 100644 --- a/GettextTranslate.cmake +++ b/GettextTranslate.cmake @@ -68,6 +68,9 @@ # add the update-po and update-gmo targets, the actual files that need to # depend on this will be added as we go +# Adhere to GNU filesystem layout conventions +include(GNUInstallDirs) + if (DEFINED GettextTranslate_ALL) set(_addToALL "ALL") endif() @@ -271,7 +274,7 @@ macro(GettextTranslate) add_dependencies(${PO_TARGET} ${MAKEVAR_DOMAIN}.pot-update) install(FILES ${GMO_FILE_NAME} DESTINATION - ${LOCALEDIR}/${lang}/LC_MESSAGES + ${CMAKE_INSTALL_LOCALEDIR}/${lang}/LC_MESSAGES RENAME ${MAKEVAR_DOMAIN}.mo )