Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0

* backported 6caed7073c
  from upstream
stable-4.0
mckaygerhard 2023-09-12 21:26:12 -04:00
parent 2292239f86
commit 9d87cd206c
1 changed files with 2 additions and 0 deletions

View File

@ -721,6 +721,8 @@ if (GETTEXT_FOUND AND APPLY_LOCALE_BLACKLIST)
endif()
endforeach()
message(STATUS "Locale blacklist applied; Locales used: ${GETTEXT_USED_LOCALES}")
elseif (GETTEXTLIB_FOUND)
set(GETTEXT_USED_LOCALES ${GETTEXT_AVAILABLE_LOCALES})
endif()
# Set some optimizations and tweaks