summaryrefslogtreecommitdiffstats
path: root/Source/cmCPluginAPI.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-15 13:52:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-12-15 13:52:52 (GMT)
commit029c8f50652415baf4aa3dd96c9a8dc9626ae4ec (patch)
tree56affae489d750c4fab198b3d7a1e49b50770664 /Source/cmCPluginAPI.cxx
parent7de214699f2bfde97e21bc440be30e6866b6e746 (diff)
parent780341f360773d7b3b766b835bd539f46397e0a6 (diff)
downloadCMake-029c8f50652415baf4aa3dd96c9a8dc9626ae4ec.zip
CMake-029c8f50652415baf4aa3dd96c9a8dc9626ae4ec.tar.gz
CMake-029c8f50652415baf4aa3dd96c9a8dc9626ae4ec.tar.bz2
Merge topic 'custom-command-main-dependency'
780341f360 cmCustomCommand: Track main dependency explicitly Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6800
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r--Source/cmCPluginAPI.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx
index 9714e16..1b11f20 100644
--- a/Source/cmCPluginAPI.cxx
+++ b/Source/cmCPluginAPI.cxx
@@ -302,9 +302,10 @@ static void CCONV cmAddCustomCommandToOutput(void* arg, const char* output,
// Pass the call to the makefile instance.
auto cc = cm::make_unique<cmCustomCommand>();
cc->SetOutputs(output);
+ cc->SetMainDependency(main_dependency);
cc->SetDepends(depends2);
cc->SetCommandLines(commandLines);
- mf->AddCustomCommandToOutput(main_dependency, std::move(cc));
+ mf->AddCustomCommandToOutput(std::move(cc));
}
static void CCONV cmAddCustomCommandToTarget(void* arg, const char* target,