Skip to content

Commit

Permalink
nativefiledialog: try to fix MSVC 193 error
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 4, 2024
1 parent 09ff7da commit e9c96b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/nativefiledialog/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit e9c96b4

Please sign in to comment.