|
|
@ -24,9 +24,9 @@ SET(GRPC_INSTALL_DIR ${THIRD_PARTY_PATH}/install/grpc)
|
|
|
|
SET(GRPC_INCLUDE_DIR "${GRPC_INSTALL_DIR}/include/" CACHE PATH "grpc include directory." FORCE)
|
|
|
|
SET(GRPC_INCLUDE_DIR "${GRPC_INSTALL_DIR}/include/" CACHE PATH "grpc include directory." FORCE)
|
|
|
|
SET(GRPC_CPP_PLUGIN "${GRPC_INSTALL_DIR}/bin/grpc_cpp_plugin" CACHE FILEPATH "GRPC_CPP_PLUGIN" FORCE)
|
|
|
|
SET(GRPC_CPP_PLUGIN "${GRPC_INSTALL_DIR}/bin/grpc_cpp_plugin" CACHE FILEPATH "GRPC_CPP_PLUGIN" FORCE)
|
|
|
|
IF(APPLE)
|
|
|
|
IF(APPLE)
|
|
|
|
SET(BUILD_CMD make -n | sed "s/-Werror//g" | sh)
|
|
|
|
SET(BUILD_CMD make -n HAS_SYSTEM_PROTOBUF=false -s -j8 static grpc_cpp_plugin | sed "s/-Werror//g" | sh)
|
|
|
|
ELSE()
|
|
|
|
ELSE()
|
|
|
|
SET(BUILD_CMD make)
|
|
|
|
SET(BUILD_CMD make HAS_SYSTEM_PROTOBUF=false -s -j8 static grpc_cpp_plugin)
|
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
|
|
|
|
ExternalProject_Add(
|
|
|
|
ExternalProject_Add(
|
|
|
@ -42,7 +42,7 @@ ExternalProject_Add(
|
|
|
|
# Disable -Werror, otherwise the compile will fail in MacOS.
|
|
|
|
# Disable -Werror, otherwise the compile will fail in MacOS.
|
|
|
|
# It seems that we cannot configure that by make command.
|
|
|
|
# It seems that we cannot configure that by make command.
|
|
|
|
# Just dry run make command and remove `-Werror`, then use a shell to run make commands
|
|
|
|
# Just dry run make command and remove `-Werror`, then use a shell to run make commands
|
|
|
|
BUILD_COMMAND ${BUILD_CMD} HAS_SYSTEM_PROTOBUF=false -s -j8 static grpc_cpp_plugin
|
|
|
|
BUILD_COMMAND ${BUILD_CMD}
|
|
|
|
INSTALL_COMMAND make prefix=${GRPC_INSTALL_DIR} install
|
|
|
|
INSTALL_COMMAND make prefix=${GRPC_INSTALL_DIR} install
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|