CMake: Conditionally build xz list.* files if decoders are enabled.
This commit is contained in:
parent
2c1a830efb
commit
b0891684b4
|
@ -958,8 +958,6 @@ if(NOT MSVC AND HAVE_GETOPT_LONG)
|
||||||
src/xz/file_io.h
|
src/xz/file_io.h
|
||||||
src/xz/hardware.c
|
src/xz/hardware.c
|
||||||
src/xz/hardware.h
|
src/xz/hardware.h
|
||||||
src/xz/list.c
|
|
||||||
src/xz/list.h
|
|
||||||
src/xz/main.c
|
src/xz/main.c
|
||||||
src/xz/main.h
|
src/xz/main.h
|
||||||
src/xz/message.c
|
src/xz/message.c
|
||||||
|
@ -982,6 +980,13 @@ if(NOT MSVC AND HAVE_GETOPT_LONG)
|
||||||
src/liblzma/api
|
src/liblzma/api
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(HAVE_DECODERS)
|
||||||
|
target_sources(xz PRIVATE
|
||||||
|
src/xz/list.c
|
||||||
|
src/xz/list.h
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_link_libraries(xz PRIVATE liblzma)
|
target_link_libraries(xz PRIVATE liblzma)
|
||||||
|
|
||||||
target_compile_definitions(xz PRIVATE ASSUME_RAM=128)
|
target_compile_definitions(xz PRIVATE ASSUME_RAM=128)
|
||||||
|
|
Loading…
Reference in New Issue