Backport #764 to 1.9-dev, to fix build on updated versions of VS 2017.
This commit is contained in:
Asher Baker 2018-12-29 15:43:59 +00:00 committed by GitHub
parent 793c603826
commit ff935b4707
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,10 +77,8 @@ for sdk_name in SM.sdks:
vs_year = ''
if msvc_ver == 1800:
vs_year = '2013'
elif msvc_ver == 1900:
elif 1900 <= msvc_ver < 2000:
vs_year = '2015'
elif msvc_ver == 1910:
vs_year = '2017'
else:
raise Exception('Cannot find libprotobuf for MSVC version "' + str(compiler.version) + '"')