1
0
Fork 0
mirror of https://git.tukaani.org/xz.git synced 2024-04-04 12:36:23 +02:00

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

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 # NOTE: The translations are in the "xz" domain and the .mo files are
# installed as part of the "xz" target. # installed as part of the "xz" target.
if(ENABLE_NLS) if(ENABLE_NLS)
target_link_libraries(lzmainfo PRIVATE Intl::Intl)
target_compile_definitions(lzmainfo PRIVATE target_compile_definitions(lzmainfo PRIVATE
ENABLE_NLS ENABLE_NLS
PACKAGE="${TRANSLATION_DOMAIN}" PACKAGE="${TRANSLATION_DOMAIN}"