diff options
author | Brad King <brad.king@kitware.com> | 2014-09-24 13:21:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-09-24 13:21:48 (GMT) |
commit | efd16ba928476bc1a576efc16d666661d31f0f49 (patch) | |
tree | d0a277edd6faa3884a9c576649359069022ba277 /Source | |
parent | e6a7abd2b69b45933abb5617a8bf5b800b2dde6f (diff) | |
parent | e7aeb79f08dd031f5fe3fd16d6d4b644b5b97000 (diff) | |
download | CMake-efd16ba928476bc1a576efc16d666661d31f0f49.zip CMake-efd16ba928476bc1a576efc16d666661d31f0f49.tar.gz CMake-efd16ba928476bc1a576efc16d666661d31f0f49.tar.bz2 |
Merge topic 'vs-wince-exe-entry-point'
e7aeb79f VS, WINCE: Only set EntryPointSymbol for executables
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 10 |
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 { |