From 52e09b6b938cfe49b07d938a8d20e5c1f2f925e3 Mon Sep 17 00:00:00 2001 From: zhiqiu Date: Wed, 28 Dec 2022 20:54:04 +0800 Subject: [PATCH] make gloo support ninja --- cmake/external/gloo.cmake | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmake/external/gloo.cmake b/cmake/external/gloo.cmake index a0fc013a130a1..a4d592c10a897 100755 --- a/cmake/external/gloo.cmake +++ b/cmake/external/gloo.cmake @@ -44,8 +44,8 @@ if(WITH_ASCEND OR WITH_ASCEND_CL) CONFIGURE_COMMAND "" BUILD_COMMAND mkdir -p ${GLOO_SOURCE_DIR}/build && cd ${GLOO_SOURCE_DIR}/build && cmake - .. -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} && make && mkdir -p - ${GLOO_LIBRARY_DIR} ${GLOO_INCLUDE_DIR}/gloo + .. -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} && ${CMAKE_COMMAND} --build . && + mkdir -p ${GLOO_LIBRARY_DIR} ${GLOO_INCLUDE_DIR}/gloo INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${GLOO_SOURCE_DIR}/build/gloo/libgloo.a ${GLOO_LIBRARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory "${GLOO_SOURCE_DIR}/gloo/" @@ -62,8 +62,8 @@ else() CONFIGURE_COMMAND "" BUILD_COMMAND mkdir -p ${GLOO_SOURCE_DIR}/build && cd ${GLOO_SOURCE_DIR}/build && cmake - .. -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} && make && mkdir -p - ${GLOO_LIBRARY_DIR} ${GLOO_INCLUDE_DIR}/gloo + .. -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS} && ${CMAKE_COMMAND} --build . && + mkdir -p ${GLOO_LIBRARY_DIR} ${GLOO_INCLUDE_DIR}/gloo INSTALL_COMMAND ${CMAKE_COMMAND} -E copy ${GLOO_SOURCE_DIR}/build/gloo/libgloo.a ${GLOO_LIBRARY_DIR} COMMAND ${CMAKE_COMMAND} -E copy_directory "${GLOO_SOURCE_DIR}/gloo/"