CREATE-PROJECT: Set subsystem for legacy visual studio projects

This commit is contained in:
Henrik "Henke37" Andersson 2020-08-16 17:59:53 +02:00 committed by Daniel
parent b35e24c9fb
commit 1079a0f935

View File

@ -231,8 +231,12 @@ void VisualStudioProvider::outputGlobalPropFile(const BuildSetup &setup, std::of
<< "\t/>\n"
<< "\t<Tool\n"
<< "\t\tName=\"VCLinkerTool\"\n"
<< "\t\tIgnoreDefaultLibraryNames=\"\"\n"
<< "\t\tSubSystem=\"1\"\n";
<< "\t\tIgnoreDefaultLibraryNames=\"\"\n";
if (setup.featureEnabled("text-console")) {
properties << "\t\tSubSystem=\"1\"\n";
} else {
properties << "\t\tSubSystem=\"2\"\n";
}
if (!setup.devTools && !setup.tests)
properties << "\t\tEntryPointSymbol=\"WinMainCRTStartup\"\n";