Skip to content

Commit

Permalink
(#23522) fix template conan doesn't pass the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
SSE4 committed Apr 17, 2024
1 parent df6764a commit 5a6232a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/package_templates/autotools_package/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def generate(self):
# --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",
Expand Down

0 comments on commit 5a6232a

Please sign in to comment.