From e7aeb79f08dd031f5fe3fd16d6d4b644b5b97000 Mon Sep 17 00:00:00 2001 From: Pascal Bach Date: Mon, 22 Sep 2014 16:19:36 +0200 Subject: [PATCH] VS, WINCE: Only set EntryPointSymbol for executables --- Source/cmVisualStudio10TargetGenerator.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index fc8fccdd8..8e731698b 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2122,7 +2122,10 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config) if (this->GlobalGenerator->TargetsWindowsCE()) { linkOptions.AddFlag("SubSystem", "WindowsCE"); - linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup"); + if (this->Target->GetType() == cmTarget::EXECUTABLE) + { + linkOptions.AddFlag("EntryPointSymbol", "WinMainCRTStartup"); + } } else { @@ -2134,7 +2137,10 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config) if (this->GlobalGenerator->TargetsWindowsCE()) { linkOptions.AddFlag("SubSystem", "WindowsCE"); - linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup"); + if (this->Target->GetType() == cmTarget::EXECUTABLE) + { + linkOptions.AddFlag("EntryPointSymbol", "mainACRTStartup"); + } } else {