diff options
author | Juozas <juozaspo@gmail.com> | 2020-04-29 13:49:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-29 12:49:55 +0200 |
commit | 3f275d799cdcd61928854bb98ca5eb74af22f31e (patch) | |
tree | 61b0b6e08533472b934b65fcc42f2e1179944c8f /src | |
parent | 00323e8fce28cb0620a20b7985c892101396c99e (diff) | |
download | minetest-3f275d799cdcd61928854bb98ca5eb74af22f31e.tar.gz minetest-3f275d799cdcd61928854bb98ca5eb74af22f31e.tar.bz2 minetest-3f275d799cdcd61928854bb98ca5eb74af22f31e.zip |
Fix gettext detection and locale building (#9772)
broken since a368e7e
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 710d9e13e..dd68ceec9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -62,7 +62,7 @@ set(USE_GETTEXT FALSE) if(ENABLE_GETTEXT) find_package(GettextLib) - if(GETTEXT_FOUND) + if(GETTEXTLIB_FOUND) if(WIN32) message(STATUS "GetText library: ${GETTEXT_LIBRARY}") message(STATUS "GetText DLL: ${GETTEXT_DLL}") @@ -70,7 +70,7 @@ if(ENABLE_GETTEXT) endif() set(USE_GETTEXT TRUE) message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}") - endif(GETTEXT_FOUND) + endif(GETTEXTLIB_FOUND) else() mark_as_advanced(GETTEXT_ICONV_DLL GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY GETTEXT_MSGFMT) message(STATUS "GetText disabled.") @@ -680,7 +680,7 @@ set(GETTEXT_BLACKLISTED_LOCALES option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid broken locales" TRUE) -if (GETTEXT_FOUND AND APPLY_LOCALE_BLACKLIST) +if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST) set(GETTEXT_USED_LOCALES "") foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES}) if (NOT ";${GETTEXT_BLACKLISTED_LOCALES};" MATCHES ";${LOCALE};") |