From e9c96b45c3f5dc15bdd7aaa25f9281c90abacfc8 Mon Sep 17 00:00:00 2001 From: Martin Valgur Date: Wed, 4 Sep 2024 15:16:40 +0300 Subject: [PATCH] nativefiledialog: try to fix MSVC 193 error --- recipes/nativefiledialog/all/conanfile.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/recipes/nativefiledialog/all/conanfile.py b/recipes/nativefiledialog/all/conanfile.py index 6b8dd04f7af973..3e6d9b9b0cd712 100644 --- a/recipes/nativefiledialog/all/conanfile.py +++ b/recipes/nativefiledialog/all/conanfile.py @@ -95,7 +95,10 @@ def generate(self): def build(self): with chdir(self, self._build_subdir): - generator = f"vs{self._vs_ide_year}" if is_msvc(self) else "gmake2" + ide_year = self._vs_ide_year + # 2022 is not directly supported as of v116 + ide_year = "2019" if ide_year == "2022" else ide_year + generator = f"vs{ide_year}" if is_msvc(self) else "gmake2" self.run(f"premake5 {generator}") if is_msvc(self):