From 37596ddea2abe83634f077a7c54d374fcade3a95 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 8 Nov 2011 08:38:58 +0000 Subject: [PATCH] Some platforms (I'm looking at you, MinGW64) have gettext but not iconv, so the build fails because iconv.h is missing. Thus, disable NLS if either gettext or iconv is not found. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4775 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index fbd1dc91..15e2f670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -189,7 +189,7 @@ if(ENABLE_NLS) endif() endif() - if(NOT GETTEXT_FOUND) + if(NOT GETTEXT_FOUND OR NOT ICONV_FOUND) message(WARNING "Gettext NOT found. Native Language Support disabled.") set(ENABLE_NLS 0) endif() -- 2.39.5