Merge branch 'fix-wince-unicode-entry-point' into release

This commit is contained in:
Brad King 2014-12-03 09:08:40 -05:00
commit 17e1ead25e
1 changed files with 16 additions and 2 deletions

View File

@ -2268,7 +2268,14 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
linkOptions.AddFlag("SubSystem", "WindowsCE");
if (this->Target->GetType() == cmTarget::EXECUTABLE)
{
linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup");
if (this->ClOptions[config]->UsingUnicode())
{
linkOptions.AddFlag("EntryPointSymbol", "wWinMainCRTStartup");
}
else
{
linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup");
}
}
}
else
@ -2283,7 +2290,14 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
linkOptions.AddFlag("SubSystem", "WindowsCE");
if (this->Target->GetType() == cmTarget::EXECUTABLE)
{
linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup");
if (this->ClOptions[config]->UsingUnicode())
{
linkOptions.AddFlag("EntryPointSymbol", "mainWCRTStartup");
}
else
{
linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup");
}
}
}
else