From: DRC Date: Tue, 8 Nov 2011 08:38:58 +0000 (+0000) Subject: Some platforms (I'm looking at you, MinGW64) have gettext but not iconv, so the build... X-Git-Tag: v1.1.90~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=37596ddea2abe83634f077a7c54d374fcade3a95;p=tigervnc.git 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 --- 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()