mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
18 lines
513 B
Diff
18 lines
513 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 4573027..4615602 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -271,6 +271,12 @@ include(cmake/upb.cmake)
|
|
include(cmake/xxhash.cmake)
|
|
include(cmake/zlib.cmake)
|
|
|
|
+
|
|
+if (ABSL_USE_CXX17)
|
|
+ message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
|
|
+ set(CMAKE_CXX_STANDARD 17)
|
|
+endif()
|
|
+
|
|
if(_gRPC_PLATFORM_MAC OR _gRPC_PLATFORM_IOS)
|
|
set(_gRPC_ALLTARGETS_LIBRARIES ${CMAKE_DL_LIBS} m pthread)
|
|
elseif(_gRPC_PLATFORM_ANDROID)
|