Skip to content

Commit 3f275d7

Browse files
authoredApr 29, 2020
Fix gettext detection and locale building (#9772)
broken since a368e7e
1 parent 00323e8 commit 3f275d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎src/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ set(USE_GETTEXT FALSE)
6262

6363
if(ENABLE_GETTEXT)
6464
find_package(GettextLib)
65-
if(GETTEXT_FOUND)
65+
if(GETTEXTLIB_FOUND)
6666
if(WIN32)
6767
message(STATUS "GetText library: ${GETTEXT_LIBRARY}")
6868
message(STATUS "GetText DLL: ${GETTEXT_DLL}")
6969
message(STATUS "GetText iconv DLL: ${GETTEXT_ICONV_DLL}")
7070
endif()
7171
set(USE_GETTEXT TRUE)
7272
message(STATUS "GetText enabled; locales found: ${GETTEXT_AVAILABLE_LOCALES}")
73-
endif(GETTEXT_FOUND)
73+
endif(GETTEXTLIB_FOUND)
7474
else()
7575
mark_as_advanced(GETTEXT_ICONV_DLL GETTEXT_INCLUDE_DIR GETTEXT_LIBRARY GETTEXT_MSGFMT)
7676
message(STATUS "GetText disabled.")
@@ -680,7 +680,7 @@ set(GETTEXT_BLACKLISTED_LOCALES
680680

681681
option(APPLY_LOCALE_BLACKLIST "Use a blacklist to avoid broken locales" TRUE)
682682

683-
if (GETTEXT_FOUND AND APPLY_LOCALE_BLACKLIST)
683+
if (GETTEXTLIB_FOUND AND APPLY_LOCALE_BLACKLIST)
684684
set(GETTEXT_USED_LOCALES "")
685685
foreach(LOCALE ${GETTEXT_AVAILABLE_LOCALES})
686686
if (NOT ";${GETTEXT_BLACKLISTED_LOCALES};" MATCHES ";${LOCALE};")

0 commit comments

Comments
 (0)
Please sign in to comment.