Makefile: Fix per-directory codegen target

Issue: #26517
This commit is contained in:
Brad King
2024-12-10 10:57:54 -05:00
parent b7e6c418e3
commit af2b340a2e

View File

@@ -1762,6 +1762,8 @@ void cmLocalUnixMakefileGenerator3::WriteLocalAllRules(
depends.emplace_back("cmake_check_build_system");
}
commands.push_back(this->GetRecursiveMakeCall(mf2Dir, recursiveTarget));
this->CreateCDCommand(commands, this->GetBinaryDirectory(),
this->GetCurrentBinaryDirectory());
AppendEcho(commands, "Finished generating code",
cmLocalUnixMakefileGenerator3::EchoColor::EchoGenerate);
this->WriteMakeRule(ruleFileStream, "The main codegen target", "codegen",