]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Fix building of lzmainfo when translations are enabled.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 19 Feb 2024 14:48:05 +0000 (16:48 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Mon, 19 Feb 2024 14:48:18 +0000 (16:48 +0200)
CMakeLists.txt

index 3a3ec41dc8464b922c8d05072473f0c48b755274..b7047dc0582a755395019e31abbb33ee5d594407 100644 (file)
@@ -1591,6 +1591,8 @@ if(HAVE_DECODERS AND (NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900))
     # NOTE: The translations are in the "xz" domain and the .mo files are
     # installed as part of the "xz" target.
     if(ENABLE_NLS)
+        target_link_libraries(lzmainfo PRIVATE Intl::Intl)
+
         target_compile_definitions(lzmainfo PRIVATE
                 ENABLE_NLS
                 PACKAGE="${TRANSLATION_DOMAIN}"