diff options
author | Brad King <brad.king@kitware.com> | 2020-10-07 19:19:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-10-08 16:20:33 (GMT) |
commit | 0090a11a42c83897e05b09d5381967f0200d6eb7 (patch) | |
tree | f685e0d08f46388aa3cb07a77a751d1d3964fe6b /Source/cmGhsMultiTargetGenerator.cxx | |
parent | 26464da5d3919cf0c5a6fc3e34cf143bd65d9938 (diff) | |
download | CMake-0090a11a42c83897e05b09d5381967f0200d6eb7.zip CMake-0090a11a42c83897e05b09d5381967f0200d6eb7.tar.gz CMake-0090a11a42c83897e05b09d5381967f0200d6eb7.tar.bz2 |
cmLocalGenerator: Migrate custom command output lookup from cmMakefile
Since commit 777ceaea94 (cmMakefile: Delay custom command creation,
2019-10-17, v3.17.0-rc1~352^2) we process custom command declarations at
generate time. Therefore we do not need to look up what source file
holds the custom command producing a given output until generate time.
Diffstat (limited to 'Source/cmGhsMultiTargetGenerator.cxx')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx index a8f8f57..ed50067 100644 --- a/Source/cmGhsMultiTargetGenerator.cxx +++ b/Source/cmGhsMultiTargetGenerator.cxx @@ -763,9 +763,9 @@ bool cmGhsMultiTargetGenerator::VisitCustomCommand( /* set temporary mark; check if revisit*/ if (temp.insert(si).second) { for (auto& di : si->GetCustomCommand()->GetDepends()) { - cmSourceFile const* sf = this->GeneratorTarget->GetLocalGenerator() - ->GetMakefile() - ->GetSourceFileWithOutput(di); + cmSourceFile const* sf = + this->GeneratorTarget->GetLocalGenerator()->GetSourceFileWithOutput( + di); /* if sf exists then visit */ if (sf && this->VisitCustomCommand(temp, perm, order, sf)) { return true; |