vcpkg/ports/grpc/00012-fix-use-cxx17.patch
Dennis 824c432473
[grpc] Update to 1.48.0 (#25914)
* grpc: Update to 1.48.0

* grpc: Adjust line-ending of patches

* grpc: Change line ending of some patches back to CRLF
2022-07-22 10:58:10 -07:00

17 lines
630 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 25990a5d8a..ba8df92858 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -326,6 +326,11 @@ include(cmake/xxhash.cmake)
include(cmake/zlib.cmake)
include(cmake/download_archive.cmake)
+if (ABSL_USE_CXX17)
+ message(STATUS "Found absl uses CXX17, enable CXX17 feature.")
+ set(CMAKE_CXX_STANDARD 17)
+endif()
+
# Setup external proto library at third_party/envoy-api with 2 download URLs
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/third_party/envoy-api)
# Download the archive via HTTP, validate the checksum, and extract to third_party/envoy-api.