From 4942d64689b4cb77ff6e4d157c9787696e0de088 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Grisez?= Date: Mon, 17 Aug 2015 15:06:59 +0200 Subject: [PATCH] Find for Gettext and libintl only if NLS is enbled --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 30642dcd8..737c15648 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,6 @@ if(ENABLE_GTK_UI) set(GTK2_ADDITIONAL_SUFFIXES "../lib/glib-2.0/include" "../lib/gtk-2.0/include") endif() find_package(GTK2 2.18 REQUIRED gtk) - find_package(Intl REQUIRED) if(ENABLE_ASSISTANT AND GTK2_VERSION VERSION_LESS 2.22) message(WARNING "You need at least GTK 2.22 to enable the assistant") set(ENABLE_ASSISTANT OFF CACHE BOOL "Turn on assistant compiling." FORCE) @@ -136,10 +135,10 @@ endif() if(ENABLE_ASSISTANT) set(BUILD_WIZARD 1) endif() -find_package(Gettext) if(ENABLE_NLS) find_package(Gettext REQUIRED) find_package(Intl REQUIRED) + include_directories(${INTL_INCLUDE_DIRS}) endif()