From af2b340a2e1043805a56a51f317c030d32e3a3e8 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 10 Dec 2024 10:57:54 -0500 Subject: Makefile: Fix per-directory codegen target Issue: #26517 --- Source/cmLocalUnixMakefileGenerator3.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index d5d86b6..d6f1233 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -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", -- cgit v0.12