aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2024-02-19 16:48:05 +0200
committerLasse Collin <lasse.collin@tukaani.org>2024-02-19 16:48:18 +0200
commit00b06cd0af6ad2ee93d3006bf80417db060c2b04 (patch)
treef7e803e0159fc01d8f27c3164a7116fb76cfa1f4
parentCMake: Don't assume that -fvisibility=hidden is supported outside Windows. (diff)
downloadxz-00b06cd0af6ad2ee93d3006bf80417db060c2b04.tar.xz
CMake: Fix building of lzmainfo when translations are enabled.
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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}"