Skip to content

Commit

Permalink
opentelemetry-cpp: add 1.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Cogitri committed Oct 28, 2023
1 parent eb9066c commit 1caf3c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions recipes/opentelemetry-cpp/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
"1.12.0":
url: "https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.12.0.tar.gz"
sha256: "09c208a21fb1159d114a3ea15dc1bcc5dee28eb39907ba72a6012d2c7b7564a0"
"1.11.0":
url: "https://github.com/open-telemetry/opentelemetry-cpp/archive/v1.11.0.tar.gz"
sha256: "f30cd88bf898a5726d245eba882b8e81012021eb00df34109f4dfb203f005cea"
Expand Down
6 changes: 5 additions & 1 deletion recipes/opentelemetry-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ class OpenTelemetryCppConan(ConanFile):

@property
def _minimum_cpp_standard(self):
if self.options.with_abseil:
return 14
if Version(self.version) >= "1.12.0":
return 14
return 11

def export_sources(self):
Expand Down Expand Up @@ -196,7 +200,7 @@ def generate(self):

tc.variables["WITH_EXAMPLES"] = False
tc.variables["WITH_NO_DEPRECATED_CODE"] = self.options.with_no_deprecated_code
tc.variables["WITH_STL"] = self.options.with_stl
tc.variables["WITH_STL"] = "ON" if self.options.with_stl else "OFF"
tc.variables["WITH_GSL"] = self.options.with_gsl
tc.variables["WITH_ABSEIL"] = self.options.with_abseil
tc.variables["WITH_OTLP_GRPC"] = self.options.get_safe("with_otlp_grpc") or False
Expand Down

0 comments on commit 1caf3c5

Please sign in to comment.