Skip to content

Commit

Permalink
Remove unneeded change of libcurl ssl
Browse files Browse the repository at this point in the history
  • Loading branch information
ollien committed May 7, 2021
1 parent c660f6c commit 9509496
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions recipes/cpr/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,25 +97,13 @@ def config_options(self):
self.options.with_ssl = CprConan._NO_SSL

def configure(self):
SSL_CURL_LIBS = {
"openssl": "openssl",
"darwinssl": "darwinssl",
"winssl": "schannel"
}

if self.options.shared:
del self.options.fPIC
if not self._supports_openssl:
del self.options.with_openssl
if not self._supports_winssl:
del self.options.with_winssl

ssl_library = self._get_ssl_library()
# Make sure libcurl uses the same SSL implementation
# "auto" will be handled by cpr
if self._supports_ssl_library(ssl_library) and ssl_library in SSL_CURL_LIBS:
self.options["libcurl"].with_ssl = SSL_CURL_LIBS[ssl_library]


def source(self):
tools.get(**self.conan_data["sources"][self.version])
Expand Down

0 comments on commit 9509496

Please sign in to comment.