Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

certify: Reduce boost dependencies #25796

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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