mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 20:29:02 +08:00
9b72cad7f0
* [abseil] Re-fix cxx 17 standard, add macro ABSL_USE_CXX17 to `absl-config.cmake` * [grpc] Fix build failure when abseil use cxx 17 standard * Update ports/abseil/portfile.cmake
17 lines
485 B
Diff
17 lines
485 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 1911144..c749d28 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -257,6 +257,11 @@ include(cmake/re2.cmake)
|
|
include(cmake/ssl.cmake)
|
|
include(cmake/upb.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)
|