vcpkg/ports/opentelemetry-cpp/support_absl_cxx17.patch
Dennis a2261f65ea
[opentelemetry-cpp] Update to 1.6.0 and fix abseil[cxx17] (#26857)
* opentelemetry-cpp: Update to 1.6.0 and fix abseil[cxx17]

* opentelemetry-cpp: Adjust versions json

* opentelemetry-cpp: Re-add 1.5.0p1 version
2022-10-14 17:52:31 -07:00

18 lines
572 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a1b69340..193c9e39 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -305,7 +305,11 @@ if(WITH_OTLP)
CACHE{WITH_OTLP_HTTP}))
find_package(CURL)
endif()
-
+ 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)