summaryrefslogtreecommitdiffstats
path: root/Source/cmCustomCommandGenerator.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-04-16 12:39:23 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-04-17 09:05:26 (GMT)
commit253aff6c94401f468ea8f9c953d325c5a8c72eb0 (patch)
treeeb747d684e3e544ea2350f58bad201e8a028b90f /Source/cmCustomCommandGenerator.cxx
parent94fb2516f00fe345326f6a82dc41f2236c481ed3 (diff)
downloadCMake-253aff6c94401f468ea8f9c953d325c5a8c72eb0.zip
CMake-253aff6c94401f468ea8f9c953d325c5a8c72eb0.tar.gz
CMake-253aff6c94401f468ea8f9c953d325c5a8c72eb0.tar.bz2
Xcode: Add support of DEPFILE for add_custom_command, part 2
This MR extend the support of 'DEPFILE' to buildsystem version 1. Issue: #20286
Diffstat (limited to 'Source/cmCustomCommandGenerator.cxx')
-rw-r--r--Source/cmCustomCommandGenerator.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCustomCommandGenerator.cxx b/Source/cmCustomCommandGenerator.cxx
index 7659792..1054beb 100644
--- a/Source/cmCustomCommandGenerator.cxx
+++ b/Source/cmCustomCommandGenerator.cxx
@@ -226,6 +226,9 @@ cmCustomCommandGenerator::cmCustomCommandGenerator(
case cmDepfileFormat::VsTlog:
argv.emplace_back("vstlog");
break;
+ case cmDepfileFormat::MakeDepfile:
+ argv.emplace_back("makedepfile");
+ break;
}
argv.push_back(this->LG->GetSourceDirectory());
argv.push_back(this->LG->GetCurrentSourceDirectory());
@@ -430,6 +433,7 @@ std::string cmCustomCommandGenerator::GetInternalDepfileName(
std::string extension;
switch (*this->LG->GetGlobalGenerator()->DepfileFormat()) {
case cmDepfileFormat::GccDepfile:
+ case cmDepfileFormat::MakeDepfile:
extension = ".d";
break;
case cmDepfileFormat::VsTlog: