vcpkg/ports/grpc/00012-fix-use-cxx17.patch
Dennis b39520920f
[grpc] Update to 1.50.1 (#27536)
* grpc: Update to 1.50.1

* dos2unix

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2022-10-31 14:31:47 -07:00

17 lines
613 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.