Ver código fonte

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

Close the `<ItemGroup>` element whenever it is opened.
Roc Ramon 8 anos atrás
pai
commit
efd0c01337
1 arquivos alterados com 3 adições e 3 exclusões
  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);
   }
 }