Skip to content

Commit

Permalink
[aws-sdk-cpp] s3-crt only for version >= 1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-coulon committed Feb 4, 2022
1 parent afd4b35 commit 065417f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions recipes/aws-sdk-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ def export_sources(self):
def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC
if tools.Version(self.version) < "1.9":
delattr(self.options, "s3-crt")

def configure(self):
if self.options.shared:
Expand Down Expand Up @@ -393,7 +395,7 @@ def _configure_cmake(self):

build_only = ["core"]
for sdk in self._sdks:
if getattr(self.options, sdk):
if self.options.get_safe(sdk):
build_only.append(sdk)
self._cmake.definitions["BUILD_ONLY"] = ";".join(build_only)

Expand Down Expand Up @@ -452,7 +454,7 @@ def package_info(self):
self.cpp_info.components["core"].requires.append("aws-c-event-stream::aws-c-event-stream-lib")

# other components
enabled_sdks = [sdk for sdk in self._sdks if getattr(self.options, sdk)]
enabled_sdks = [sdk for sdk in self._sdks if self.options.get_safe(sdk)]
for hl_comp in self._internal_requirements.keys():
if getattr(self.options, hl_comp):
for internal_requirement in self._internal_requirements[hl_comp]:
Expand Down

0 comments on commit 065417f

Please sign in to comment.