diff options
author | Brad King <brad.king@kitware.com> | 2014-07-29 17:43:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-29 19:06:32 (GMT) |
commit | 972cf1d7afd1476c550ca0503d75ec93bd764124 (patch) | |
tree | caa47c16276e435d8ce60d1402abe5bb64edc34e | |
parent | 15fb102278c1cf9141e42174d89bbfe5ef26f634 (diff) | |
download | CMake-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>
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 8 |
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( |