Skip to content

Commit

Permalink
honor default upstream values of with_ca_bundle & with_ca_path
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Nov 1, 2022
1 parent 9bbdf53 commit ad07569
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions recipes/libcurl/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ class LibcurlConan(ConanFile):
"with_symbol_hiding": [True, False],
"with_unix_sockets": [True, False],
"with_verbose_strings": [True, False],
"with_ca_bundle": [None, "ANY"],
"with_ca_path": [None, "ANY"],
"with_ca_bundle": [False, "auto", "ANY"],
"with_ca_path": [False, "auto", "ANY"],
}
default_options = {
"shared": False,
Expand Down Expand Up @@ -111,8 +111,8 @@ class LibcurlConan(ConanFile):
"with_symbol_hiding": False,
"with_unix_sockets": True,
"with_verbose_strings": True,
"with_ca_bundle": None,
"with_ca_path": None,
"with_ca_bundle": "auto",
"with_ca_path": "auto",
}

@property
Expand Down Expand Up @@ -450,15 +450,15 @@ def _generate_with_autotools(self):
if not self.options.with_ntlm_wb:
tc.configure_args.append("--disable-ntlm-wb")

if self.options.with_ca_bundle:
tc.configure_args.append(f"--with-ca-bundle={str(self.options.with_ca_bundle)}")
else:
if not self.options.with_ca_bundle:
tc.configure_args.append("--without-ca-bundle")
elif self.options.with_ca_bundle != "auto":
tc.configure_args.append(f"--with-ca-bundle={str(self.options.with_ca_bundle)}")

if self.options.with_ca_path:
tc.configure_args.append(f"--with-ca-path={str(self.options.with_ca_path)}")
else:
if not self.options.with_ca_path:
tc.configure_args.append("--without-ca-path")
elif self.options.with_ca_path != "auto":
tc.configure_args.append(f"--with-ca-path={str(self.options.with_ca_path)}")

# Cross building flags
if cross_building(self):
Expand Down

0 comments on commit ad07569

Please sign in to comment.