anchor.diff:  if %ERRORLEVEL% EQU 0 (
       git diff HEAD last_pr --stat --name-only
       git diff HEAD last_pr --stat --name-only | findstr "cmake/[a-zA-Z]*\.cmake CMakeLists.txt"
  -    if !ERRORLEVEL! EQU 0 (
  -        rmdir build /s/q
  -    )
       git branch -D last_pr
       git branch last_pr
   ) else (
       rmdir build /s/q
       git branch last_pr
   )
  -
  -:: set CI_SKIP_CPP_TEST if only *.py changed
  -git diff --name-only %BRANCH% | findstr /V "\.py" || set CI_SKIP_CPP_TEST=ON
  -
  -:: for /F %%# in ('wmic os get localdatetime^|findstr 20') do set datetime=%%#
  -:: set day_now=%datetime:~6,2%
  -:: set day_before=-1
  -:: set /p day_before=< %cache_dir%\day.txt
  -:: if %day_now% NEQ %day_before% (
  -::     echo %day_now% > %cache_dir%\day.txt
  -::     type %cache_dir%\day.txt
  -::     rmdir build /s/q
  -::     goto :mkbuild
  -:: )
   
   :: git diff HEAD origin/develop --stat --name-only
   :: git diff HEAD origin/develop --stat --name-only | findstr ".cmake CMakeLists.txt paddle_build.bat"
  
positive.code: if not defined WITH_CACHE set WITH_CACHE=OFF
  if not defined WITH_TPCACHE set WITH_TPCACHE=ON
  if not defined WITH_UNITY_BUILD set WITH_UNITY_BUILD=OFF
  set INFERENCE_DEMO_INSTALL_DIR=%cache_dir:\=/%/inference_demo
  
  rem -------set cache build work directory-----------
  rmdir build\python /s/q
  del build\CMakeCache.txt
  if "%WITH_CACHE%"=="OFF" (
      rmdir build /s/q
      goto :mkbuild
  
negative.code: )
  
  :cmake_impl
  echo cmake .. -G %GENERATOR% -DWITH_AVX=%WITH_AVX% -DWITH_GPU=%WITH_GPU% -DWITH_MKL=%WITH_MKL% ^
  -DWITH_TESTING=%WITH_TESTING% -DWITH_PYTHON=%WITH_PYTHON% -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -DON_INFER=%ON_INFER% ^
  -DWITH_INFERENCE_API_TEST=%WITH_INFERENCE_API_TEST% -DTHIRD_PARTY_PATH=%THIRD_PARTY_PATH% ^
  -DINFERENCE_DEMO_INSTALL_DIR=%INFERENCE_DEMO_INSTALL_DIR% -DWITH_STATIC_LIB=%WITH_STATIC_LIB% ^
  -DWITH_TENSORRT=%WITH_TENSORRT% -DTENSORRT_ROOT=%TENSORRT_ROOT% -DMSVC_STATIC_CRT=%MSVC_STATIC_CRT% ^
  -DWITH_UNITY_BUILD=%WITH_UNITY_BUILD%
  
  cmake .. -G %GENERATOR% -DWITH_AVX=%WITH_AVX% -DWITH_GPU=%WITH_GPU% -DWITH_MKL=%WITH_MKL% ^
  -DWITH_TESTING=%WITH_TESTING% -DWITH_PYTHON=%WITH_PYTHON% -DPYTHON_EXECUTABLE=%PYTHON_EXECUTABLE% -DON_INFER=%ON_INFER% ^
  -DWITH_INFERENCE_API_TEST=%WITH_INFERENCE_API_TEST% -DTHIRD_PARTY_PATH=%THIRD_PARTY_PATH% ^
  -DINFERENCE_DEMO_INSTALL_DIR=%INFERENCE_DEMO_INSTALL_DIR% -DWITH_STATIC_LIB=%WITH_STATIC_LIB% ^
  -DWITH_TENSORRT=%WITH_TENSORRT% -DTENSORRT_ROOT=%TENSORRT_ROOT% -DMSVC_STATIC_CRT=%MSVC_STATIC_CRT% ^
  