CMake: Fix building of lzmainfo when translations are enabled.

This commit is contained in:
Lasse Collin 2024-02-19 16:48:05 +02:00
parent b0d1422b60
commit 00b06cd0af
1 changed files with 2 additions and 0 deletions

View 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}"