Path to vcvarsall.bat was fixed for VS 2017
@@ -441,6 +441,9 @@ class ConanMultiPackager(object):
def _execute_visual_studio_build(self, settings, options):
'''Sets the VisualStudio environment with vcvarsall for the specified version'''
compiler_version = settings["compiler.version"]
+ if int(compiler_version) >= 15:
+ vcvars = 'call "%vs' + str(compiler_version) + '0comntools%../../VC/Auxiliary/Build/vcvarsall.bat"'
+ else:
vcvars = 'call "%vs' + str(compiler_version) + '0comntools%../../VC/vcvarsall.bat"'
param = "x86" if settings.get("arch", None) == "x86" else "amd64"
pre_command = '%s %s' % (vcvars, param)
