]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Only build xzdec if decoders are enabled.
authorJia Tan <jiat0218@gmail.com>
Fri, 24 Mar 2023 12:05:59 +0000 (20:05 +0800)
committerJia Tan <jiat0218@gmail.com>
Fri, 24 Mar 2023 12:05:59 +0000 (20:05 +0800)
CMakeLists.txt

index 584f1af1232c1f865fe8b65297253bcd0cb054f3..d936667f19d460d54c354a7645119c69a7358f0e 100644 (file)
@@ -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