mirror of
https://github.com/conan-io/conan-center-index.git
synced 2025-08-15 02:58:22 +00:00
(#23522) fix template conan doesn't pass the linter
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user