Co-developed-by: 榆柳松 (ZhengSen Wang) <wzhengsen@gmail.com>
Fixes: fb50c6ba1d4c9405e5b12b5988b01a3002638c5d
Fixes: https://github.com/tukaani-project/xz/pull/134
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.