mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 20:27:49 +08:00
a2261f65ea
* opentelemetry-cpp: Update to 1.6.0 and fix abseil[cxx17] * opentelemetry-cpp: Adjust versions json * opentelemetry-cpp: Re-add 1.5.0p1 version
18 lines
572 B
Diff
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)
|