aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2023-03-24 20:05:59 +0800
committerJia Tan <jiat0218@gmail.com>2023-04-25 20:18:31 +0800
commitba176d77cbb164b13006516660fc1ff6c59dedb5 (patch)
treee1c572ac9f261a1c253f6d1d218f95152fd7c634 /CMakeLists.txt
parentBuild: Removes redundant check for LZMA1 filter support. (diff)
downloadxz-ba176d77cbb164b13006516660fc1ff6c59dedb5.tar.xz
CMake: Only build xzdec if decoders are enabled.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
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