Sfoglia il codice sorgente

VS: Fix VS_SDK_REFERENCES when target is not a Windows 10 app

Close the `<ItemGroup>` element whenever it is opened.
Roc Ramon 8 anni fa
parent
commit
efd0c01337
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      Source/cmVisualStudio10TargetGenerator.cxx

+ 3 - 3
Source/cmVisualStudio10TargetGenerator.cxx

@@ -3698,10 +3698,10 @@ void cmVisualStudio10TargetGenerator::WriteSDKReferences()
         this->WriteSingleSDKReference("WindowsIoT", iotExtensionsVersion);
       }
     }
+  }
 
-    if (hasWrittenItemGroup) {
-      this->WriteString("</ItemGroup>\n", 1);
-    }
+  if (hasWrittenItemGroup) {
+    this->WriteString("</ItemGroup>\n", 1);
   }
 }