IO::print(out, "\t<ItemGroup Label=\"ProjectConfigurations\">\n");
vector<string> build_types = builder.get_build_types();
- const char *platforms[] = { "x86-32", "x86-64", 0 };
+ const char *platforms[] = { "Win32", "x64", 0 };
for(const char **i=platforms; *i; ++i)
for(vector<string>::const_iterator j=build_types.begin(); j!=build_types.end(); ++j)
{
for(const char **i=platforms; *i; ++i)
for(vector<string>::const_iterator j=build_types.begin(); j!=build_types.end(); ++j)
{
+ string base_cmd = format("%s --arch=%s --build-type=%s --prefix=%s", argv0, *i, *j, builder.get_prefix());
IO::print(out, "\t<PropertyGroup Condition=\"'$(Configuration)|$(Platform)'=='%s|%s'\" Label=\"Configuration\">\n", *j, *i);
IO::print(out, "\t\t<ConfigurationType>MakeFile</ConfigurationType>\n");
- IO::print(out, "\t\t<NMakeBuildCommandLine>%s --arch=%s --build-type=%s</NMakeBuildCommandLine>\n", argv0, *i, *j);
- IO::print(out, "\t\t<NMakeCleanCommandLine>%s --arch=%s --build-type=%s -c</NMakeCleanCommandLine>\n", argv0, *i, *j);
- IO::print(out, "\t\t<NMakeReBuildCommandLine>%s --arch=%s --build-type=%s -B</NMakeReBuildCommandLine>\n", argv0, *i, *j);
+ IO::print(out, "\t\t<NMakeBuildCommandLine>%s</NMakeBuildCommandLine>\n", base_cmd);
+ IO::print(out, "\t\t<NMakeCleanCommandLine>%s -c</NMakeCleanCommandLine>\n", base_cmd);
+ IO::print(out, "\t\t<NMakeReBuildCommandLine>%s -B</NMakeReBuildCommandLine>\n", base_cmd);
if(exe)
IO::print(out, "\t\t<NMakeOutput>%s</NMakeOutput>\n", exe->get_path());
+ IO::print(out, "\t\t\t<PlatformToolset>v142</PlatformToolset>\n");
IO::print(out, "\t</PropertyGroup>\n");
}