vcpkg/ports/opentelemetry-cpp/support_absl_cxx17.patch

18 lines
572 B
Diff
Raw Normal View History

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)