mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-31 05:03:22 +08:00
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)
|