(#23522) fix template conan doesn't pass the linter

This commit is contained in:
SSE4
2024-04-17 15:30:03 +07:00
committed by GitHub
parent df6764afcf
commit 5a6232a539

View File

@@ -132,7 +132,7 @@ class PackageConan(ConanFile):
# --enable/disable-shared is automatically managed when 'shared' option is declared
tc = AutotoolsToolchain(self)
# autotools usually uses 'yes' and 'no' to enable/disable options
yes_no = lambda v: "yes" if v else "no"
def yes_no(v): return "yes" if v else "no"
tc.configure_args.extend([
f"--with-foobar={yes_no(self.options.with_foobar)}",
"--enable-tools=no",