]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: The compile definition is ENABLE_NLS, not XZ_NLS
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 2 Jul 2024 15:02:50 +0000 (18:02 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 2 Jul 2024 15:39:43 +0000 (18:39 +0300)
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: 29f77c7b707f2458fb047e77497354b195e05b14
CMakeLists.txt

index b338ed8fd556eb25b3d0ff2177eff3abc99788ae..edc31b321f519c37adb671725cbb2b1a10591a24 100644 (file)
@@ -1953,7 +1953,7 @@ if(XZ_TOOL_LZMAINFO AND HAVE_DECODERS)
         target_link_libraries(lzmainfo PRIVATE Intl::Intl)
 
         target_compile_definitions(lzmainfo PRIVATE
-                XZ_NLS
+                ENABLE_NLS
                 PACKAGE="${TRANSLATION_DOMAIN}"
                 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_compile_definitions(xz PRIVATE
-                XZ_NLS
+                ENABLE_NLS
                 PACKAGE="${TRANSLATION_DOMAIN}"
                 LOCALEDIR="${LOCALEDIR_DEFINITION}"
         )