3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 20:18:18 +00:00

Fixed VS 2017 platform toolset version in .vcxproj

This commit is contained in:
Christoph M. Wintersteiger 2017-05-12 14:28:55 +01:00
parent 284436aa5a
commit 46791047fa

View file

@ -2958,6 +2958,10 @@ def get_platform_toolset_str():
tokens = lline.split('.') tokens = lline.split('.')
if len(tokens) < 2: if len(tokens) < 2:
return default return default
else:
if tokens[0] == "15":
# Visual Studio 2017 reports 15.* but the PlatformToolsetVersion is 141
return "v141"
else: else:
return 'v' + tokens[0] + tokens[1] return 'v' + tokens[0] + tokens[1]