diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-08-11 18:44:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-21 13:28:21 (GMT) |
commit | 0432f0620d58997cd80fd5283af3afc510482d2c (patch) | |
tree | b997bad369bb8745ab034de0add91b3bffb2aafe | |
parent | e6ff2f8bb4308b055b1f6b193b9cabb9f45c65ae (diff) | |
download | CMake-0432f0620d58997cd80fd5283af3afc510482d2c.zip CMake-0432f0620d58997cd80fd5283af3afc510482d2c.tar.gz CMake-0432f0620d58997cd80fd5283af3afc510482d2c.tar.bz2 |
VS: Always ignore ole32 on Windows Phone 8.0
Inspired-by: Paul Annetts <paul@lightunobscured.com>
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 9e9011d..76068ac 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1982,6 +1982,13 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config) // component, then do not generate the metadata here. linkOptions.AddFlag("GenerateWindowsMetadata", "false"); } + + if (this->GlobalGenerator->TargetsWindowsPhone() && + this->GlobalGenerator->GetSystemVersion() == "8.0") + { + // WindowsPhone 8.0 does not have ole32. + linkOptions.AppendFlag("IgnoreSpecificDefaultLibraries", "ole32.lib"); + } } linkOptions.Parse(flags.c_str()); |