From c889320f4e1bc014e84eba8d286a2291a731cb4b Mon Sep 17 00:00:00 2001 From: zhoufeng Date: Sun, 19 Apr 2020 12:14:46 +0800 Subject: [PATCH] fix cmake verbose --- build.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index d555188c206..7550d76c8f6 100755 --- a/build.sh +++ b/build.sh @@ -314,7 +314,10 @@ build_mindspore() if [[ "X$INC_BUILD" = "Xoff" ]]; then cmake ${CMAKE_ARGS} ../.. fi - cmake --build . --target package ${VERBOSE} -j$THREAD_NUM + if [[ -n "$VERBOSE" ]]; then + CMAKE_VERBOSE="--verbose" + fi + cmake --build . --target package ${CMAKE_VERBOSE} -j$THREAD_NUM echo "success to build mindspore project!" }