Skip to content

Commit

Permalink
CMake: Fix building of lzmainfo when translations are enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
Larhzu committed Feb 19, 2024
1 parent b0d1422 commit 00b06cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 00b06cd

Please sign in to comment.