vcpkg/ports/grpc/00012-fix-use-cxx17.patch
Frank 470620d23a
[grpc] update to 1.44.0 (#23591)
* [grpc] update to 1.44.0

* update version

* update patch EOL

* overwrite version

* update patch

* update version

* fix uwp-build

* overwrite version
2022-03-21 13:18:01 -07:00

17 lines
468 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9c07732..54b4b23 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -321,6 +321,11 @@ include(cmake/ssl.cmake)
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(WIN32)
set(_gRPC_BASELIB_LIBRARIES wsock32 ws2_32 crypt32 gdi32)