mirror of
https://git.tukaani.org/xz.git
synced 2025-04-03 22:30:58 +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")
|
COMPONENT "${XZDEC}_Runtime")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
# This is the only build-time difference with lzmadec.
|
if(XZ_TOOL_LZMADEC)
|
||||||
target_compile_definitions(lzmadec PRIVATE "LZMADEC")
|
# This is the only build-time difference with lzmadec.
|
||||||
|
target_compile_definitions(lzmadec PRIVATE "LZMADEC")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(UNIX)
|
if(UNIX)
|
||||||
# NOTE: This puts the lzmadec.1 symlinks into xzdec_Documentation.
|
# NOTE: This puts the lzmadec.1 symlinks into xzdec_Documentation.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user