anchor.diff:  REM Cmake is installed to winclientlib
   SET CMAKE_FULLPATH=%winclientlib%\tools\cmake-3.7.1-win64-x64\bin\cmake
   
  -ECHO %MSBUILD_TARGET%ing Mordor %PLATFORM% %CONFIG%
  -
  -@CALL %LaunchVCVars% x86
  -IF DEFINED _ECHO ECHO ON
  -
  -IF "%PLATFORM%" EQU "Win32" (
  -    SET VCVARARG=x86
  -    SET GENERATOR="Visual Studio 12 2013"
  -) ELSE (
  -    SET VCVARARG=AMD64
  -    SET GENERATOR="Visual Studio 12 2013 Win64"
  -)
  +ECHO %MSBUILD_TARGET%ing %PROJECT% %PLATFORM% %CONFIG%
   
   IF "%CLEAN%" EQU "1" (
       REM For cmake case all the generated output is centralized outside of the
  
positive.code: SET PLATFORM=Win32
  SET MSBUILD_TARGET=Build
  
  REM Determine absolute path of mordor no matter how this script was invoked
  SET ROOT=%~dp0%\..
  pushd %ROOT%
  SET ROOT=%CD%
  popd
  
  FOR %%A IN (%*) DO (
      IF /i "%%A" EQU "debug" SET CONFIG=Debug
      IF /i "%%A" EQU "coverage" SET CONFIG=Debug
      IF /i "%%A" EQU "release" SET CONFIG=Release
  
      IF /i "%%A" EQU "x64" SET PLATFORM=x64
      IF /i "%%A" EQU "win32" SET PLATFORM=Win32
  
      IF /i "%%A" EQU "clean" (
          SET CLEAN=1
          SET CLEANONLY=1
          SET MSBUILD_TARGET=Clean
      )
      IF /i "%%A" EQU "rebuild" (
          SET CLEAN=1
          SET CLEANONLY=0
          SET MSBUILD_TARGET=Rebuild
      )
  
      IF /i "%%A" EQU "nocmake" SET USE_CMAKE=0
      IF /i "%%A" EQU "cmake" SET USE_CMAKE=1
      IF /i "%%A" EQU "cmakegen" (
          SET CMAKEGEN=1
          SET USE_CMAKE=1
      )
  )
  
  REM VS120 is Visual Studio 2013
  SET LaunchVCVars="%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
  
  IF NOT EXIST %LaunchVCVars% (
    ECHO Visual Studio not found!
    EXIT /B 1
  )
  
  if "%winclientlib%" == "" (
      REM winclientlib variable is needed to find the third party libs
      REM see thirdPartyPaths-win64.props
      REM Normally it should be set as a global env variable if not set
      REM we default to assumption that it is located in the root of the profile.
      REM See winclientlib git project for details
  
      SET winclientlib=%USERPROFILE%\winclientlib
  )
  
negative.code: IF NOT EXIST %PLATFORM% mkdir %PLATFORM%
  pushd %PLATFORM%
  
  IF "%PLATFORM%" EQU "Win32" (
      SET GENERATOR="Visual Studio 12 2013"
  ) ELSE (
      SET GENERATOR="Visual Studio 12 2013 Win64"
      SET PreferredToolArchitecture=x64
  )
  
  REM Generate vcxproj
  REM IF EXIST CMakeCache.txt DEL CMakeCache.txt
  %CMAKE_FULLPATH% -G %GENERATOR% %ROOT%
  