mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 19:18:06 +00:00
Find for Gettext and libintl only if NLS is enbled
This commit is contained in:
parent
52dc82cd5b
commit
4942d64689
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue