summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-07-29 17:43:35 (GMT)
committerBrad King <brad.king@kitware.com>2014-07-29 19:06:32 (GMT)
commit972cf1d7afd1476c550ca0503d75ec93bd764124 (patch)
treecaa47c16276e435d8ce60d1402abe5bb64edc34e /Source/cmVisualStudio10TargetGenerator.cxx
parent15fb102278c1cf9141e42174d89bbfe5ef26f634 (diff)
downloadCMake-972cf1d7afd1476c550ca0503d75ec93bd764124.zip
CMake-972cf1d7afd1476c550ca0503d75ec93bd764124.tar.gz
CMake-972cf1d7afd1476c550ca0503d75ec93bd764124.tar.bz2
VS: Map .appxmanifest sources to AppxManifest tool
Inspired-by: Minmin Gong <minmin.gong@gmail.com>
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 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(