summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-04 12:48:54 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-04 12:49:01 (GMT)
commita5ec7f868f2c7c9714a525a9872b9eaa528d064b (patch)
treeac5e514b2dc4f4c455545b42f8088d08a9a0d2a0 /Source/cmVisualStudio10TargetGenerator.cxx
parent40e12882609619a902d19b94de442b2874bf7a45 (diff)
parentf5d72be57a00f18ed2b18fc2eb6ccedee3544542 (diff)
downloadCMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.zip
CMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.tar.gz
CMake-a5ec7f868f2c7c9714a525a9872b9eaa528d064b.tar.bz2
Merge topic 'vs-wince-deployment'
f5d72be57a VS: Fix deployment for WinCE projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2907
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index c4040e1..178e717 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -376,7 +376,13 @@ void cmVisualStudio10TargetGenerator::Generate()
{
Elem e0(BuildFileStream, "Project");
e0.Attribute("DefaultTargets", "Build");
- e0.Attribute("ToolsVersion", this->GlobalGenerator->GetToolsVersion());
+ const char* toolsVersion = this->GlobalGenerator->GetToolsVersion();
+ if (this->GlobalGenerator->GetVersion() ==
+ cmGlobalVisualStudioGenerator::VS12 &&
+ this->GlobalGenerator->TargetsWindowsCE()) {
+ toolsVersion = "4.0";
+ }
+ e0.Attribute("ToolsVersion", toolsVersion);
e0.Attribute("xmlns",
"http://schemas.microsoft.com/developer/msbuild/2003");