vcpkg/ports/opentelemetry-cpp/support_absl_cxx17.patch
Tom Tan 0d0a01598c
[opentelemetry-cpp] Update to v1.8.2 (#29483)
* Update opentelemetry-cpp to v1.8.2

* Add feature description to otlp-http

* Update opentelemetry-cpp.json

* use ${VERSION} in portfile.cmake

* update version

---------

Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
Co-authored-by: Lily Wang <494550702@qq.com>
2023-02-07 15:31:57 -08:00

17 lines
500 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9df8f5ca..f68830cc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -344,6 +344,11 @@ if(WITH_OTLP)
endif()
include(CMakeDependentOption)
+ if (ABSL_USE_CXX17)
+ message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
+ set(CMAKE_CXX_STANDARD 17)
+ set(WITH_STL ON)
+ endif()
cmake_dependent_option(
WITH_OTLP_GRPC "Whether to include the OTLP gRPC exporter in the SDK" ON
"gRPC_FOUND" OFF)