Merge topic 'vs-wince-exe-entry-point'

e7aeb79f VS, WINCE: Only set EntryPointSymbol for executables
This commit is contained in:
Brad King 2014-09-24 09:21:48 -04:00 committed by CMake Topic Stage
commit efd16ba928

View File

@ -2122,8 +2122,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
if (this->GlobalGenerator->TargetsWindowsCE())
{
linkOptions.AddFlag("SubSystem", "WindowsCE");
if (this->Target->GetType() == cmTarget::EXECUTABLE)
{
linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup");
}
}
else
{
linkOptions.AddFlag("SubSystem", "Windows");
@ -2134,8 +2137,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
if (this->GlobalGenerator->TargetsWindowsCE())
{
linkOptions.AddFlag("SubSystem", "WindowsCE");
if (this->Target->GetType() == cmTarget::EXECUTABLE)
{
linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup");
}
}
else
{
linkOptions.AddFlag("SubSystem", "Console");