anchor.diff:  	echo WebSockets support only available for x86 platform.
   )
   
  -if EXIST %build-root%\cmake\%CMAKE_DIR% (
  -    rmdir /s/q %build-root%\cmake\%CMAKE_DIR%
  +if EXIST %cmake-root%\cmake\%CMAKE_DIR% (
  +    rmdir /s/q %cmake-root%\cmake\%CMAKE_DIR%
       rem no error checking
   )
   
  -echo CMAKE Output Path: %build-root%\cmake\%CMAKE_DIR%
  -mkdir %build-root%\cmake\%CMAKE_DIR%
  +echo CMAKE Output Path: %cmake-root%\cmake\%CMAKE_DIR%
  +mkdir %cmake-root%\cmake\%CMAKE_DIR%
   rem no error checking
  -pushd %build-root%\cmake\%CMAKE_DIR%
  +pushd %cmake-root%\cmake\%CMAKE_DIR%
   
   if %MAKE_NUGET_PKG% == yes (
       echo ***Running CMAKE for Win32***
  
positive.code:     popd
  	
      echo ***Running CMAKE for Win64***
      if EXIST %build-root%\cmake\iotsdk_win64 (
          rmdir /s/q %build-root%\cmake\iotsdk_win64
      )
  	mkdir %build-root%\cmake\iotsdk_win64
  	pushd %build-root%\cmake\iotsdk_win64
  	cmake -Drun_longhaul_tests:BOOL=%CMAKE_run_longhaul_tests% -Drun_e2e_tests:BOOL=%CMAKE_run_e2e_tests% -Dskip_unittests:BOOL=%CMAKE_skip_unittests% -Duse_wsio:BOOL=%CMAKE_use_wsio% %build-root%  -G "Visual Studio 14 Win64"
  	if not %errorlevel%==0 exit /b %errorlevel%
      popd
  
      echo ***Running CMAKE for ARM***
      if EXIST %build-root%\cmake\iotsdk_arm (
          rmdir /s/q %build-root%\cmake\iotsdk_arm
      )
  	mkdir %build-root%\cmake\iotsdk_arm
  	pushd %build-root%\cmake\iotsdk_arm
  	cmake -Drun_longhaul_tests:BOOL=%CMAKE_run_longhaul_tests% -Drun_e2e_tests:BOOL=%CMAKE_run_e2e_tests% -Dskip_unittests:BOOL=%CMAKE_skip_unittests% -Duse_wsio:BOOL=%CMAKE_use_wsio% %build-root%  -G "Visual Studio 14 ARM"
  	if not %errorlevel%==0 exit /b %errorlevel%
  
  
negative.code: if "%1" equ "--skip-unittests" goto arg-skip-unittests
  if "%1" equ "--use-websockets" goto arg-use-websockets
  if "%1" equ "--make_nuget" goto arg-build-nuget
  if "%1" equ "--cmake-root" goto arg-cmake-root
  call :usage && exit /b 1
  
  :arg-build-clean
  