anchor.diff:  echo Building libgit2...
   if not exist %LIBGIT2_TARGET% ( mkdir %LIBGIT2_TARGET% )
   cd %LIBGIT2_TARGET%
  -cmake %LIBGIT2_SRC% -G%TARGET_PLATFORM% ^
  +cmake %LIBGIT2_SRC% "-G%TARGET_PLATFORM%" ^
    -DTHREADSAFE=ON -DBUILD_CLAR=OFF -DSTDCALL=OFF ^
    %LIBGIT2_CMAKE_FLAGS%
   if %ERRORLEVEL% neq 0 exit /b %ERRORLEVEL%
  
positive.code: echo Building libjagged...
  if not exist %LIBJAGGED_TARGET% ( mkdir %LIBJAGGED_TARGET% )
  cd %LIBJAGGED_TARGET%
  cmake %LIBJAGGED_SRC% -G%TARGET_PLATFORM% ^
   -DINCLUDE_LIBGIT2=%LIBGIT2_SRC%\include ^
   -DLINK_LIBGIT2="%LIBGIT2_TARGET%\%CMAKE_CONFIG%" ^
   %LIBJAGGED_CMAKE_FLAGS%
  
negative.code: if "%VS_VERSION%" == "" set VS_VERSION=14
  
  if "%TARGET_PLATFORM%" == "" (
  	if "%ARCH%" == "x86" set "TARGET_PLATFORM=Visual Studio %VS_VERSION%"
  	if "%ARCH%" == "x86_64" set "TARGET_PLATFORM=Visual Studio %VS_VERSION% Win64"
  )
  
  if "%CMAKE_CONFIG%" == "" set CMAKE_CONFIG=RelWithDebInfo
  