summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorPascal Bach <pascal.bach@siemens.com>2014-09-22 14:19:36 (GMT)
committerBrad King <brad.king@kitware.com>2014-09-22 14:23:16 (GMT)
commite7aeb79f08dd031f5fe3fd16d6d4b644b5b97000 (patch)
treeb6a2e03b6e3650c3c6befd7bdff4cb97fb574cb0 /Source/cmVisualStudio10TargetGenerator.cxx
parent0ab2718448fbcdd1f85b76a7186b65a818a5cd1c (diff)
downloadCMake-e7aeb79f08dd031f5fe3fd16d6d4b644b5b97000.zip
CMake-e7aeb79f08dd031f5fe3fd16d6d4b644b5b97000.tar.gz
CMake-e7aeb79f08dd031f5fe3fd16d6d4b644b5b97000.tar.bz2
VS, WINCE: Only set EntryPointSymbol for executables
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index fc8fccd..8e73169 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
{