From 00b06cd0af6ad2ee93d3006bf80417db060c2b04 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Mon, 19 Feb 2024 16:48:05 +0200 Subject: CMake: Fix building of lzmainfo when translations are enabled. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3a3ec41d..b7047dc0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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}" -- cgit v1.2.3