anchor.diff:  cmake -G"%CMAKEOPT%" -DCMAKE_CONFIGURATION_TYPES=Release -DENABLE_STATIC=ON -DENABLE_TESTS=OFF .
   echo Compiling BSON library ...
   devenv libbson.sln /project bson_static /rebuild Release >nul 2>&1
  +if ERRORLEVEL 1 (
  +  :: Shows error
  +  devenv libbson.sln /project bson_static /build Release
  +  echo;
  +  echo Build failed.
  +  echo MongoDB driver not available.
  +  exit /b
  +)
   
   cd %BASEDIR%3rdparty\mongo-driver
   del /f /q CMakeCache.txt cmake_install.cmake CMakeFiles Makefile >nul 2>&1
  
positive.code: echo Compiling MongoDB driver library ...
  devenv libmongoc.sln /project mongoc_static /rebuild Release >nul 2>&1
  if ERRORLEVEL 1 (
    echo Build failed.
    echo MongoDB driver not available.
    exit /b
  
negative.code: ::
  :: 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 (devenv.exe) do if exist %%~$path:I set DEVENV=%%~$path:I
  
  if "%QMAKE%" == "" (
    echo Qt environment not found
  