summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommandGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-08 21:58:33 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-09 14:09:58 (GMT)
commit7291f312545d4a22339a4f9763ea61e16507c8a3 (patch)
treec9ec37b15c1ef0304e7af23a600d58eb8b163471 /Source/cmCustomCommandGenerator.cxx
parenta6de8ec51b5afdef747e0dfd8f5d67e2b92429c0 (diff)
downloadCMake-7291f312545d4a22339a4f9763ea61e16507c8a3.zip
CMake-7291f312545d4a22339a4f9763ea61e16507c8a3.tar.gz
CMake-7291f312545d4a22339a4f9763ea61e16507c8a3.tar.bz2
cmTransformDepfile: Add support for MSBuild AdditionalInputs format
Diffstat (limited to 'Source/cmCustomCommandGenerator.cxx')
-rw-r--r--Source/cmCustomCommandGenerator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx
index 10a6491..5a2683b 100644
--- a/Source/cmCustomCommandGenerator.cxx
+++ b/Source/cmCustomCommandGenerator.cxx
@@ -230,6 +230,9 @@ cmCustomCommandGenerator::cmCustomCommandGenerator(
case cmDepfileFormat::MakeDepfile:
argv.emplace_back("makedepfile");
break;
+ case cmDepfileFormat::MSBuildAdditionalInputs:
+ argv.emplace_back("MSBuildAdditionalInputs");
+ break;
}
argv.push_back(this->LG->GetSourceDirectory());
argv.push_back(this->LG->GetCurrentSourceDirectory());
@@ -437,6 +440,9 @@ std::string cmCustomCommandGenerator::GetInternalDepfileName(
case cmDepfileFormat::MakeDepfile:
extension = ".d";
break;
+ case cmDepfileFormat::MSBuildAdditionalInputs:
+ extension = ".AdditionalInputs";
+ break;
}
return cmStrCat(this->LG->GetBinaryDirectory(), "/CMakeFiles/d/",
hash.HashString(depfile), extension);