From ba176d77cbb164b13006516660fc1ff6c59dedb5 Mon Sep 17 00:00:00 2001 From: Jia Tan Date: Fri, 24 Mar 2023 20:05:59 +0800 Subject: [PATCH] CMake: Only build xzdec if decoders are enabled. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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