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