summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-03-24 20:05:59 +0800
committerJia Tan <jiat0218@gmail.com>2023-03-24 20:05:59 +0800
commitddfe164368e779c40d061aa4ccc376129e92f8e1 (patch)
tree3d63e5ca5fb732eef7b416ded691a9570b32ab75
parent116e81f002c503d3c3cd12726db8f9116e58ef25 (diff)
downloadxz-ddfe164368e779c40d061aa4ccc376129e92f8e1.tar.gz
CMake: Only build xzdec if decoders are enabled.
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 584f1af..d936667 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