summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-08-05 19:00:09 (GMT)
committerBrad King <brad.king@kitware.com>2014-08-12 14:08:40 (GMT)
commit2dfcf0ed079119cb25f6520100083270873503f5 (patch)
tree952b5487b4915d6bad30ddd6aa490e0829921154 /Source/cmVisualStudio10TargetGenerator.cxx
parentdbb5a7ee315948b4f16e5c6a549db090e266e51d (diff)
downloadCMake-2dfcf0ed079119cb25f6520100083270873503f5.zip
CMake-2dfcf0ed079119cb25f6520100083270873503f5.tar.gz
CMake-2dfcf0ed079119cb25f6520100083270873503f5.tar.bz2
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.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 291827a..1e9e8e8 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -2133,4 +2133,9 @@ void cmVisualStudio10TargetGenerator::WriteApplicationTypeSettings()
"</MinimumVisualStudioVersion>\n", 2);
}
}
+ if (this->Platform == "ARM")
+ {
+ this->WriteString("<WindowsSDKDesktopARMSupport>true"
+ "</WindowsSDKDesktopARMSupport>", 2);
+ }
}