Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0

* backported 6caed7073c
  from upstream
stable-0.4-namespace
mckaygerhard 2023-09-12 21:25:17 -04:00
parent 8d77805791
commit 545ed62909
1 changed files with 2 additions and 0 deletions

View File

@ -702,6 +702,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