Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix GRPC compilation failure on CMake 3.20 #5255

Merged
merged 17 commits into from
Jun 21, 2021

Conversation

jackalcooper
Copy link
Collaborator

修复在 CMake 3.20.X 等高版本 CMake 下 GRPC 编译失败的问题

@jackalcooper jackalcooper changed the title Fix GRPC fail on CMake 3.20 Fix GRPC compilation failure on CMake 3.20 Jun 21, 2021
@@ -10,28 +13,23 @@ set(GRPC_URL_HASH 0c6c3fc8682d4262dd0e5e6fabe1a7e2)
SET(GRPC_SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/grpc)

if(WIN32)
set(GRPC_BUILD_LIBRARY_DIR ${CMAKE_CURRENT_BINARY_DIR}/grpc/src/grpc/${CMAKE_BUILD_TYPE})
set(GRPC_LIBRARY_NAMES grpc++_unsecure.lib
grpc_unsecure.lib gpr.lib upb.lib address_sorting.lib)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里需要有改动吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GRPC_BUILD_LIBRARY_DIR 这个目录用不到了,所以顺手删了

@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 21, 2021 08:24
@oneflow-ci-bot oneflow-ci-bot self-requested a review June 21, 2021 08:44
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 21, 2021 09:35
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 21, 2021 11:01
@oneflow-ci-bot oneflow-ci-bot merged commit 12f6a6c into master Jun 21, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fix_cmake_320_grpc_cares branch June 21, 2021 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants