Skip to content

Commit

Permalink
reduce boost dependencies (#25796)
Browse files Browse the repository at this point in the history
  • Loading branch information
planetmarshall authored Nov 4, 2024
1 parent 6555cdf commit f0f78ab
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions recipes/certify/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def layout(self):
basic_layout(self, src_folder="src")

def requirements(self):
self.requires("boost/1.83.0")
self.requires("boost/[>=1.83.0 <2]")
self.requires("openssl/[>=1.1 <4]")

def package_id(self):
Expand Down Expand Up @@ -84,8 +84,15 @@ def package(self):
def package_info(self):
self.cpp_info.set_property("cmake_file_name", "certify")
self.cpp_info.set_property("cmake_target_name", "certify::core")

self.cpp_info.components["_certify"].requires = ["boost::boost", "openssl::openssl"]
component_requirements = [
"boost::headers",
"boost::filesystem",
"boost::date_time",
"openssl::openssl"
]

self.cpp_info.requires = component_requirements
self.cpp_info.components["_certify"].requires = component_requirements
self.cpp_info.components["_certify"].names["cmake_find_package"] = "core"
self.cpp_info.components["_certify"].names["cmake_find_package_multi"] = "core"

Expand Down

0 comments on commit f0f78ab

Please sign in to comment.