Explorar o código

VS: Always ignore ole32 on Windows Phone 8.0

Inspired-by: Paul Annetts <[email protected]>
Gilles Khouzam %!s(int64=11) %!d(string=hai) anos
pai
achega
0432f0620d
Modificáronse 1 ficheiros con 7 adicións e 0 borrados
  1. 7 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 7 - 0
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());