From 972cf1d7afd1476c550ca0503d75ec93bd764124 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 29 Jul 2014 13:43:35 -0400 Subject: VS: Map .appxmanifest sources to AppxManifest tool Inspired-by: Minmin Gong --- Source/cmVisualStudio10TargetGenerator.cxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index 872f187..50c303f 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -1013,7 +1013,13 @@ void cmVisualStudio10TargetGenerator::WriteHeaderSource(cmSourceFile const* sf) void cmVisualStudio10TargetGenerator::WriteExtraSource(cmSourceFile const* sf) { - this->WriteSource("None", sf); + std::string tool = "None"; + std::string const& ext = sf->GetExtension(); + if(ext == "appxmanifest") + { + tool = "AppxManifest"; + } + this->WriteSource(tool, sf); } void cmVisualStudio10TargetGenerator::WriteSource( -- cgit v0.12