aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:00:20 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:00:20 +0100
commit5479b136b992aadaf938d9857da561589bfd7d2a (patch)
tree17dd4737ae28638bbc777befa5d7bdfad251483c
parent17ab6d15b06b0fd56a9f62ff3818c976f07e6fb7 (diff)
downloadayatana-indicator-power-5479b136b992aadaf938d9857da561589bfd7d2a.tar.gz
ayatana-indicator-power-5479b136b992aadaf938d9857da561589bfd7d2a.tar.bz2
ayatana-indicator-power-5479b136b992aadaf938d9857da561589bfd7d2a.zip
CMakeLists.txt: Move gettext initialization below the GNUInstallDirs include. This sets GNOMELOCALEDIR appropriately and probably fixes broken i18n support.
-rw-r--r--CMakeLists.txt11
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 223358b..081739e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,9 +5,6 @@ list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set(PROJECT_VERSION "2.0.91")
set(PACKAGE ${CMAKE_PROJECT_NAME})
-set(GETTEXT_PACKAGE "ayatana-indicator-power")
-add_definitions (-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
- -DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
option (enable_tests "Build the package's automatic tests." ON)
option (enable_lcov "Generate lcov code coverage reports." ON)
@@ -25,6 +22,14 @@ set (CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NA
set (CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}")
##
+## Gettext
+##
+
+set(GETTEXT_PACKAGE "ayatana-indicator-power")
+add_definitions (-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
+ -DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
+
+##
## Check for prerequisites
##