CREATE_PROJECT: Use console for devtools and tests projects

This commit is contained in:
SupSuper 2021-02-22 12:28:54 +00:00
parent 73755d1d3a
commit a52e5818d2
2 changed files with 2 additions and 2 deletions

View file

@ -384,7 +384,7 @@ void MSBuildProvider::outputGlobalPropFile(const BuildSetup &setup, std::ofstrea
<< "\t\t</ClCompile>\n" << "\t\t</ClCompile>\n"
<< "\t\t<Link>\n" << "\t\t<Link>\n"
<< "\t\t\t<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>\n"; << "\t\t\t<IgnoreSpecificDefaultLibraries>%(IgnoreSpecificDefaultLibraries)</IgnoreSpecificDefaultLibraries>\n";
if (!setup.featureEnabled("text-console")) { if (!setup.featureEnabled("text-console") && !setup.devTools && !setup.tests) {
properties << "\t\t\t<SubSystem>Windows</SubSystem>\n"; properties << "\t\t\t<SubSystem>Windows</SubSystem>\n";
} else { } else {
properties << "\t\t\t<SubSystem>Console</SubSystem>\n"; properties << "\t\t\t<SubSystem>Console</SubSystem>\n";

View file

@ -232,7 +232,7 @@ void VisualStudioProvider::outputGlobalPropFile(const BuildSetup &setup, std::of
<< "\t<Tool\n" << "\t<Tool\n"
<< "\t\tName=\"VCLinkerTool\"\n" << "\t\tName=\"VCLinkerTool\"\n"
<< "\t\tIgnoreDefaultLibraryNames=\"\"\n"; << "\t\tIgnoreDefaultLibraryNames=\"\"\n";
if (setup.featureEnabled("text-console")) { if (setup.featureEnabled("text-console") || setup.devTools || setup.tests) {
properties << "\t\tSubSystem=\"1\"\n"; properties << "\t\tSubSystem=\"1\"\n";
} else { } else {
properties << "\t\tSubSystem=\"2\"\n"; properties << "\t\tSubSystem=\"2\"\n";