aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:44:25 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2017-12-06 11:44:25 +0100
commit8a8cfe605357c566f9643931f16c065ba4357e2b (patch)
treef397091cc62aa2c392b3c4b9130b508c1cb5485c
parent097763da88ee3b73304542520008a89708c46be7 (diff)
downloadayatana-indicator-sound-8a8cfe605357c566f9643931f16c065ba4357e2b.tar.gz
ayatana-indicator-sound-8a8cfe605357c566f9643931f16c065ba4357e2b.tar.bz2
ayatana-indicator-sound-8a8cfe605357c566f9643931f16c065ba4357e2b.zip
Initialize Gettext after GNUInstallDirs has been included. Fixes broken i18n support.
-rw-r--r--CMakeLists.txt9
1 files changed, 4 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3189f3c..472a789 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -4,11 +4,6 @@ cmake_minimum_required(VERSION 2.8.9)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" "${CMAKE_MODULE_PATH}")
set(PACKAGE ${CMAKE_PROJECT_NAME})
-set(GETTEXT_PACKAGE "ayatana-indicator-sound")
-set(GNOMELOCALEDIR "${CMAKE_INSTALL_FULL_DATADIR}/locale")
-
-add_definitions( -DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}" )
-
find_package(PkgConfig REQUIRED)
include(GNUInstallDirs)
include(UseVala)
@@ -19,6 +14,10 @@ if (EXISTS "/etc/debian_version")
set(CMAKE_INSTALL_FULL_LIBEXECDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBEXECDIR}")
endif()
+set(GETTEXT_PACKAGE "ayatana-indicator-sound")
+set(GNOMELOCALEDIR "${CMAKE_INSTALL_FULL_DATADIR}/locale")
+add_definitions( -DGETTEXT_PACKAGE="${GETTEXT_PACKAGE}" )
+
set(SOURCE_DIR "${CMAKE_SOURCE_DIR}/src")
set(SOURCE_BINARY_DIR "${CMAKE_BINARY_DIR}/src")