From 26b102e817af99d8da55eecba09e8398ec0e3d88 Mon Sep 17 00:00:00 2001 From: Luke Elliott Date: Wed, 24 Nov 2021 09:54:37 +0000 Subject: Fix '# Visual Studio <>' comment in sln files with VS backend such that Visual Studio Version Selector works. --- mesonbuild/backend/vs2022backend.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/backend/vs2022backend.py') diff --git a/mesonbuild/backend/vs2022backend.py b/mesonbuild/backend/vs2022backend.py index 19ad090..b0925a4 100644 --- a/mesonbuild/backend/vs2022backend.py +++ b/mesonbuild/backend/vs2022backend.py @@ -25,6 +25,8 @@ class Vs2022Backend(Vs2010Backend): def __init__(self, build: T.Optional[Build], interpreter: T.Optional[Interpreter]): super().__init__(build, interpreter) self.name = 'vs2022' + self.sln_file_version = '12.00' + self.sln_version_comment = 'Version 17' if self.environment is not None: comps = self.environment.coredata.compilers.host if comps and all(c.id == 'clang-cl' for c in comps.values()): -- cgit v1.1