Przeglądaj źródła

VS: Fix generation of desktop applications for ARM

Add WindowsSDKDesktopARMSupport to the .vcxproj to avoid 'error MSB8022:
Compiling Desktop applications for the ARM platform is not supported.'
from VS.
Gilles Khouzam 11 lat temu
rodzic
commit
2dfcf0ed07
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      Source/cmVisualStudio10TargetGenerator.cxx

+ 5 - 0
Source/cmVisualStudio10TargetGenerator.cxx

@@ -2133,4 +2133,9 @@ void cmVisualStudio10TargetGenerator::WriteApplicationTypeSettings()
                         "</MinimumVisualStudioVersion>\n", 2);
       }
     }
+  if (this->Platform == "ARM")
+    {
+    this->WriteString("<WindowsSDKDesktopARMSupport>true"
+                      "</WindowsSDKDesktopARMSupport>", 2);
+    }
 }