CMake: The compile definition is ENABLE_NLS, not XZ_NLS

The CMake variables were renamed and accidentally also
the compile definition was renamed. As a result, translation
support wasn't actually enabled in the executables.

Fixes: 29f77c7b70
This commit is contained in:
Lasse Collin 2024-07-02 18:02:50 +03:00
parent 45d08abc33
commit a0df067613
1 changed files with 2 additions and 2 deletions

View File

@ -1953,7 +1953,7 @@ if(XZ_TOOL_LZMAINFO AND HAVE_DECODERS)
target_link_libraries(lzmainfo PRIVATE Intl::Intl) target_link_libraries(lzmainfo PRIVATE Intl::Intl)
target_compile_definitions(lzmainfo PRIVATE target_compile_definitions(lzmainfo PRIVATE
XZ_NLS ENABLE_NLS
PACKAGE="${TRANSLATION_DOMAIN}" PACKAGE="${TRANSLATION_DOMAIN}"
LOCALEDIR="${LOCALEDIR_DEFINITION}" LOCALEDIR="${LOCALEDIR_DEFINITION}"
) )
@ -2111,7 +2111,7 @@ this many MiB of RAM if xz cannot determine the amount at runtime")
target_link_libraries(xz PRIVATE Intl::Intl) target_link_libraries(xz PRIVATE Intl::Intl)
target_compile_definitions(xz PRIVATE target_compile_definitions(xz PRIVATE
XZ_NLS ENABLE_NLS
PACKAGE="${TRANSLATION_DOMAIN}" PACKAGE="${TRANSLATION_DOMAIN}"
LOCALEDIR="${LOCALEDIR_DEFINITION}" LOCALEDIR="${LOCALEDIR_DEFINITION}"
) )