mirror of
https://git.tukaani.org/xz.git
synced 2025-03-02 14:40:40 +00:00
CMake: Fix the build when XZ_TOOL_LZMADEC=OFF
Co-developed-by: 榆柳松 (ZhengSen Wang) <wzhengsen@gmail.com> Fixes: fb50c6ba1d4c9405e5b12b5988b01a3002638c5d Fixes: https://github.com/tukaani-project/xz/pull/134
This commit is contained in:
parent
5e37598750
commit
acdf21033a
@ -1868,8 +1868,10 @@ if(HAVE_DECODERS)
|
||||
COMPONENT "${XZDEC}_Runtime")
|
||||
endforeach()
|
||||
|
||||
# This is the only build-time difference with lzmadec.
|
||||
target_compile_definitions(lzmadec PRIVATE "LZMADEC")
|
||||
if(XZ_TOOL_LZMADEC)
|
||||
# This is the only build-time difference with lzmadec.
|
||||
target_compile_definitions(lzmadec PRIVATE "LZMADEC")
|
||||
endif()
|
||||
|
||||
if(UNIX)
|
||||
# NOTE: This puts the lzmadec.1 symlinks into xzdec_Documentation.
|
||||
|
Loading…
x
Reference in New Issue
Block a user