summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-08-11 18:44:35 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-21 13:28:21 (GMT)
commit0432f0620d58997cd80fd5283af3afc510482d2c (patch)
treeb997bad369bb8745ab034de0add91b3bffb2aafe /Source/cmVisualStudio10TargetGenerator.cxx
parente6ff2f8bb4308b055b1f6b193b9cabb9f45c65ae (diff)
downloadCMake-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>
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx7
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());