Skip to content

Commit

Permalink
Fix older version CMake doesn't support multiple targets in CLI (#5248)
Browse files Browse the repository at this point in the history
* refine

* refine

* revert

Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
  • Loading branch information
jackalcooper and oneflow-ci-bot committed Jun 21, 2021
1 parent 2027aa1 commit 5303ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/third_party/grpc.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ ExternalProject_Add(grpc
URL_HASH MD5=${GRPC_URL_HASH}
UPDATE_COMMAND ""
BUILD_IN_SOURCE 1
BUILD_COMMAND ${CMAKE_COMMAND} --build . -j ${PROC_NUM} -t grpc grpc_unsecure grpc++_unsecure
BUILD_COMMAND ${CMAKE_COMMAND} --build . -j ${PROC_NUM} --target grpc && ${CMAKE_COMMAND} --build . -j ${PROC_NUM} --target grpc_unsecure && ${CMAKE_COMMAND} --build . -j ${PROC_NUM} --target grpc++_unsecure
INSTALL_COMMAND ""
CMAKE_CACHE_ARGS
-DCMAKE_BUILD_TYPE:STRING=${CMAKE_BUILD_TYPE}
Expand Down

0 comments on commit 5303ee1

Please sign in to comment.