diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index d5d86b60a9..d6f12336a4 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",