From 4a730fa0b08c68fc01f35b79a43fdd72411f2b83 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 12 Apr 2024 14:34:11 +0200 Subject: CMake: Use GNUInstallDirs This should make CMake options a little more standardized. The Windows part could potentially still be unified further. Absolute paths are now only used for the defines and not for values going to install() commands. --- po/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'po') diff --git a/po/CMakeLists.txt b/po/CMakeLists.txt index 08abb6bf..f2ae4b93 100644 --- a/po/CMakeLists.txt +++ b/po/CMakeLists.txt @@ -30,7 +30,7 @@ MACRO(MANA_GETTEXT_CREATE_TRANSLATIONS _potFile _firstPoFileArg) DEPENDS ${_absPotFile} ${_absFile} ) - INSTALL(FILES ${_gmoFile} DESTINATION share/locale/${_lang}/LC_MESSAGES RENAME ${_potBasename}.mo) + INSTALL(FILES ${_gmoFile} DESTINATION ${CMAKE_INSTALL_LOCALEDIR}/${_lang}/LC_MESSAGES RENAME ${_potBasename}.mo) SET(_gmoFiles ${_gmoFiles} ${_gmoFile}) ENDFOREACH (_currentPoFile) -- cgit v1.2.3-70-g09d2