Skip to content

Commit

Permalink
additional tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gegles committed Mar 31, 2024
1 parent 8d48926 commit bcd0ed0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions recipes/openssl/3.x.x/test_package/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def requirements(self):
self.requires(self.tested_reference_str)

def _with_legacy(self):
return (not self.dependencies["openssl"].options.no_legacy and
((not self.dependencies["openssl"].options.no_md4) or
(not self.dependencies["openssl"].options.no_rmd160)))
return (not self.dependencies[self.tested_reference_str].options.no_legacy and
((not self.dependencies[self.tested_reference_str].options.no_md4) or
(not self.dependencies[self.tested_reference_str].options.no_rmd160)))

def generate(self):
tc = CMakeToolchain(self)
tc.cache_variables["OPENSSL_WITH_LEGACY"] = self._with_legacy()
tc.cache_variables["OPENSSL_WITH_MD4"] = not self.dependencies["openssl"].options.no_md4
tc.cache_variables["OPENSSL_WITH_RIPEMD160"] = not self.dependencies["openssl"].options.no_rmd160
tc.cache_variables["OPENSSL_WITH_MD4"] = not self.dependencies[self.tested_reference_str].options.no_md4
tc.cache_variables["OPENSSL_WITH_RIPEMD160"] = not self.dependencies[self.tested_reference_str].options.no_rmd160
tc.generate()

def build(self):
Expand Down

0 comments on commit bcd0ed0

Please sign in to comment.