From e5ece4739894651a13fd9cd801aff27543d53e62 Mon Sep 17 00:00:00 2001 From: sleske Date: Fri, 14 Jun 2013 18:50:24 +0000 Subject: Fix:build/cmake:Make CMake variable ENABLE_NLS work. git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5536 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- CMakeLists.txt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 34cbe712..4ab76ff3 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -95,7 +95,7 @@ add_module(vehicle/gpsd_dbus "dbus-glib-1 not found" FALSE) add_module(speech/speech_dispatcher "speech_dispatcher lib not found" FALSE) add_module(autoload/osso "Default" FALSE) add_module(map/garmin "Garmin library not found" FALSE) -add_feature(ENABLE_NLS "default" TRUE) +add_feature(ENABLE_NLS "Gettext not found and not on Windows" FALSE) INCLUDE (CPack) INCLUDE (CheckIncludeFiles) @@ -352,6 +352,10 @@ if (LIBOSSO_FOUND) set_with_reason(autoload/osso "Maemo osso library found" TRUE ${LIBOSSO_LIBRARIES}) endif(LIBOSSO_FOUND) +if (GETTEXT_FOUND) + set_with_reason(ENABLE_NLS "Gettext found" TRUE) +endif(GETTEXT_FOUND) + #Independent modules add_module(graphics/null "Default" TRUE) add_module(osd/core "Default" TRUE) @@ -484,7 +488,7 @@ if(WIN32 OR WINCE) set(HAVE_PRAGMA_PACK 1) add_plugin(support/xgetopt "Windows detected" TRUE) endif(MSVC) - set(ENABLE_NLS TRUE) + set_with_reason(ENABLE_NLS "Windows detected" TRUE) enable_language(RC) set(XSLTS "windows;${XSLTS}" CACHE STRING "define a semicolon seperated list of XSLTs to process") @@ -690,6 +694,6 @@ add_subdirectory (navit) add_subdirectory (man) -if (GETTEXT_FOUND) +if (ENABLE_NLS) add_subdirectory (po) -endif(GETTEXT_FOUND) +endif(ENABLE_NLS) -- cgit v1.2.1