mirror of https://git.tukaani.org/xz.git
CMake: Fix the build when XZ_TOOL_LZMADEC=OFF
Co-developed-by: 榆柳松 (ZhengSen Wang) <wzhengsen@gmail.com>
Fixes: fb50c6ba1d
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()
|
||||||
|
|
||||||
|
if(XZ_TOOL_LZMADEC)
|
||||||
# This is the only build-time difference with lzmadec.
|
# This is the only build-time difference with lzmadec.
|
||||||
target_compile_definitions(lzmadec PRIVATE "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…
Reference in New Issue