From 2cb1d2c0bc4ef0e59de427451af8264889e32b4f Mon Sep 17 00:00:00 2001
From: RadRussianRus <radrussianrus@gmail.com>
Date: Wed, 8 Dec 2021 16:09:42 +0300
Subject: [PATCH] Removed explicit definition of cmake generator

Even though TDesktop build migrated to VS 2022, dependencies script still had "Visual Studio 16 2019" for mozjpeg and openal-soft as a generator. Removing these lines allows to use latest Visual Studio without changing the script.
---
 Telegram/build/prepare/prepare.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py
index e368456fb..f1ae1f5d5 100644
--- a/Telegram/build/prepare/prepare.py
+++ b/Telegram/build/prepare/prepare.py
@@ -474,7 +474,6 @@ stage('mozjpeg', """
     cd mozjpeg
 win:
     cmake . ^
-        -G "Visual Studio 16 2019" ^
         -A %WIN32X64% ^
         -DWITH_JPEG8=ON ^
         -DPNG_SUPPORTED=OFF
@@ -870,7 +869,6 @@ version: 2
     cd build
 win:
     cmake .. ^
-        -G "Visual Studio 16 2019" ^
         -A %WIN32X64% ^
         -D LIBTYPE:STRING=STATIC ^
         -D FORCE_STATIC_VCRT=ON