diff options
author | Brad King <brad.king@kitware.com> | 2024-12-10 15:57:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-12-10 16:36:29 (GMT) |
commit | af2b340a2e1043805a56a51f317c030d32e3a3e8 (patch) | |
tree | 32b861176fd120569752e621200076f29226993c /Source | |
parent | b7e6c418e3d7de531f6d2b5e0de154d955dc98c8 (diff) | |
download | CMake-af2b340a2e1043805a56a51f317c030d32e3a3e8.zip CMake-af2b340a2e1043805a56a51f317c030d32e3a3e8.tar.gz CMake-af2b340a2e1043805a56a51f317c030d32e3a3e8.tar.bz2 |
Makefile: Fix per-directory codegen target
Issue: #26517
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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", |