forked from mindspore-Ecosystem/mindspore
!10162 enable download from gitee when compile on windows
From: @liubuyu Reviewed-by: @zhoufeng54,@kisnwang Signed-off-by: @kisnwang
This commit is contained in:
commit
3111529d5c
|
@ -20,6 +20,7 @@ SET BUILD_PATH=%BASE_PATH%/build
|
||||||
|
|
||||||
SET threads=6
|
SET threads=6
|
||||||
SET X86_64_SIMD=off
|
SET X86_64_SIMD=off
|
||||||
|
SET ENABLE_GITEE=OFF
|
||||||
|
|
||||||
set VERSION_MAJOR=''
|
set VERSION_MAJOR=''
|
||||||
set VERSION_MINOR=''
|
set VERSION_MINOR=''
|
||||||
|
@ -62,6 +63,11 @@ IF %errorlevel% == 0 (
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
IF "%FROM_GITEE%" == "1" (
|
||||||
|
echo "DownLoad from gitee"
|
||||||
|
SET ENABLE_GITEE=ON
|
||||||
|
)
|
||||||
|
|
||||||
IF NOT EXIST "%BUILD_PATH%" (
|
IF NOT EXIST "%BUILD_PATH%" (
|
||||||
md "build"
|
md "build"
|
||||||
)
|
)
|
||||||
|
@ -79,7 +85,7 @@ IF "%1%" == "lite" (
|
||||||
-DX86_64_SIMD=%X86_64_SIMD% ^
|
-DX86_64_SIMD=%X86_64_SIMD% ^
|
||||||
-G "CodeBlocks - MinGW Makefiles" "%BASE_PATH%/mindspore/lite"
|
-G "CodeBlocks - MinGW Makefiles" "%BASE_PATH%/mindspore/lite"
|
||||||
) ELSE (
|
) ELSE (
|
||||||
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CPU=ON -DENABLE_MINDDATA=ON -DUSE_GLOG=ON ^
|
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CPU=ON -DENABLE_MINDDATA=ON -DUSE_GLOG=ON -DENABLE_GITEE=%ENABLE_GITEE% ^
|
||||||
-G "CodeBlocks - MinGW Makefiles" ../..
|
-G "CodeBlocks - MinGW Makefiles" ../..
|
||||||
)
|
)
|
||||||
IF NOT %errorlevel% == 0 (
|
IF NOT %errorlevel% == 0 (
|
||||||
|
|
Loading…
Reference in New Issue