VS, WINCE: Only set EntryPointSymbol for executables
This commit is contained in:
parent
0ab2718448
commit
e7aeb79f08
|
@ -2122,8 +2122,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
if (this->GlobalGenerator->TargetsWindowsCE())
|
if (this->GlobalGenerator->TargetsWindowsCE())
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("SubSystem", "WindowsCE");
|
linkOptions.AddFlag("SubSystem", "WindowsCE");
|
||||||
|
if (this->Target->GetType() == cmTarget::EXECUTABLE)
|
||||||
|
{
|
||||||
linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup");
|
linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("SubSystem", "Windows");
|
linkOptions.AddFlag("SubSystem", "Windows");
|
||||||
|
@ -2134,8 +2137,11 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
if (this->GlobalGenerator->TargetsWindowsCE())
|
if (this->GlobalGenerator->TargetsWindowsCE())
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("SubSystem", "WindowsCE");
|
linkOptions.AddFlag("SubSystem", "WindowsCE");
|
||||||
|
if (this->Target->GetType() == cmTarget::EXECUTABLE)
|
||||||
|
{
|
||||||
linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup");
|
linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup");
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
linkOptions.AddFlag("SubSystem", "Console");
|
linkOptions.AddFlag("SubSystem", "Console");
|
||||||
|
|
Loading…
Reference in New Issue