anchor.diff:  ::
   :: Generates tfenv.bat
   ::
  -for %%I in (qmake.exe) do if exist %%~$path:I set QMAKE=%%~$path:I
  -for %%I in (cmake.exe) do if exist %%~$path:I set CMAKE=%%~$path:I
  -for %%I in (cl.exe)    do if exist %%~$path:I set MSCOMPILER=%%~$path:I
  -for %%I in (g++.exe)   do if exist %%~$path:I set GNUCOMPILER=%%~$path:I
  +for %%I in (qmake.exe)  do if exist %%~$path:I set QMAKE=%%~$path:I
  +for %%I in (cmake.exe)  do if exist %%~$path:I set CMAKE=%%~$path:I
  +for %%I in (cl.exe)     do if exist %%~$path:I set MSCOMPILER=%%~$path:I
  +for %%I in (devenv.exe) do if exist %%~$path:I set DEVENV=%%~$path:I
   
   if "%QMAKE%" == "" (
     echo Qt environment not found
  
positive.code: rd /s /q  lz4 >nul 2>&1
  del /f /q lz4 >nul 2>&1
  mklink /j lz4 lz4-%LZ4_VERSION% >nul 2>&1
  if not "%MSCOMPILER%" == "" (
    for /F %%i in ('qtpaths.exe --install-prefix') do echo %%i | find "msvc2015" >NUL
    if not ERRORLEVEL 1 (
      devenv lz4\visual\VS2015\lz4.sln /project liblz4 /rebuild "Release|%BUILDTARGET%" >nul 2>&1
    ) else (
      devenv lz4\visual\VS2017\lz4.sln /project liblz4 /rebuild "Release|%BUILDTARGET%" >nul 2>&1
    )
    if ERRORLEVEL 1 (
      echo Build failed.
      echo LZ4 not available.
      exit /b
    )
  ) else (
    cd %BASEDIR%3rdparty\lz4\lib
    qmake -o makefile.liblz4
    %MAKE% -f makefile.liblz4 clean >nul 2>&1
    %MAKE% -f makefile.liblz4 >nul 2>&1
  )
  
  cd %BASEDIR%src
  
negative.code: echo Compiling MongoDB driver library ...
  devenv libmongoc.sln /project mongoc_static /rebuild Release >nul 2>&1
  if ERRORLEVEL 1 (
    :: Shows error
    devenv libmongoc.sln /project mongoc_static /build Release
    echo;
    echo Build failed.
    echo MongoDB driver not available.
    exit /b
  