diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-06 11:50:12 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2017-12-06 11:50:12 +0100 |
commit | 68ff3cef28c4a4655c7d426b99fe3e61207f676f (patch) | |
tree | fc16f83a4dfdb95b4b8ba9464b965654b42e9cbc /CMakeLists.txt | |
parent | 6b6fc19687e563c3b9a558381250d2be6b33ceb1 (diff) | |
download | ayatana-indicator-display-68ff3cef28c4a4655c7d426b99fe3e61207f676f.tar.gz ayatana-indicator-display-68ff3cef28c4a4655c7d426b99fe3e61207f676f.tar.bz2 ayatana-indicator-display-68ff3cef28c4a4655c7d426b99fe3e61207f676f.zip |
CMakeLists.txt: Move gettext initialization below the GNUInstallDirs include. This fixes broken i18n support.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ce70069..b96fd82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,12 +4,6 @@ cmake_minimum_required(VERSION 2.8.9) list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake) set(PACKAGE ${CMAKE_PROJECT_NAME}) -set(GETTEXT_PACKAGE "ayatana-indicator-display") -add_definitions( - -DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}" - -DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}" -) - set(SERVICE_LIB ${PACKAGE}) set(SERVICE_EXEC "${PACKAGE}-service") @@ -25,6 +19,17 @@ endif() set(CMAKE_INSTALL_PKGLIBEXECDIR "${CMAKE_INSTALL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") set(CMAKE_INSTALL_FULL_PKGLIBEXECDIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/${CMAKE_PROJECT_NAME}") + +## +## Gettext +## + +set(GETTEXT_PACKAGE "ayatana-indicator-display") +add_definitions( + -DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}" + -DGNOMELOCALEDIR="${CMAKE_INSTALL_FULL_LOCALEDIR}" +) + ## ## Check for prerequisites ## |