diff options
author | Jia Tan <jiat0218@gmail.com> | 2023-03-24 20:05:59 +0800 |
---|---|---|
committer | Jia Tan <jiat0218@gmail.com> | 2023-03-24 20:05:59 +0800 |
commit | ddfe164368e779c40d061aa4ccc376129e92f8e1 (patch) | |
tree | 3d63e5ca5fb732eef7b416ded691a9570b32ab75 /CMakeLists.txt | |
parent | Build: Removes redundant check for LZMA1 filter support. (diff) | |
download | xz-ddfe164368e779c40d061aa4ccc376129e92f8e1.tar.xz |
CMake: Only build xzdec if decoders are enabled.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 584f1af1..d936667f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -887,7 +887,7 @@ check_symbol_exists(getopt_long getopt.h HAVE_GETOPT_LONG) # xzdec ############################################################################# -if(HAVE_GETOPT_LONG) +if(HAVE_GETOPT_LONG AND HAVE_DECODERS) add_executable(xzdec src/common/sysdefs.h src/common/tuklib_common.h |