aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:47:09 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:47:09 +0100
commit8bb39fec3a7f57977d0f2aa9f0832b206edbc6d0 (patch)
treeeb311fdf9c7c8eca344450f43189a1e9807ad7e3
parent60e71c1a599c59ee6aaba1cc4754eda2d637e70d (diff)
downloadayatana-indicator-datetime-8bb39fec3a7f57977d0f2aa9f0832b206edbc6d0.tar.gz
ayatana-indicator-datetime-8bb39fec3a7f57977d0f2aa9f0832b206edbc6d0.tar.bz2
ayatana-indicator-datetime-8bb39fec3a7f57977d0f2aa9f0832b206edbc6d0.zip
CMakeLists.txt: Move gettext initialization below the GNUInstallDirs include. This fixes broken i18n support.
-rw-r--r--CMakeLists.txt12
1 files changed, 8 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ec5041b..1a3f5bf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -5,10 +5,6 @@ list (APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
set (PROJECT_VERSION "14.04.0")
set (PACKAGE ${CMAKE_PROJECT_NAME})
-set (GETTEXT_PACKAGE "ayatana-indicator-datetime")
-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 +21,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-datetime")
+add_definitions (-DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}"
+ -DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}")
+
+##
## Check for prerequisites
##