summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-12-10 15:57:54 (GMT)
committerBrad King <brad.king@kitware.com>2024-12-10 16:36:29 (GMT)
commitaf2b340a2e1043805a56a51f317c030d32e3a3e8 (patch)
tree32b861176fd120569752e621200076f29226993c /Source
parentb7e6c418e3d7de531f6d2b5e0de154d955dc98c8 (diff)
downloadCMake-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.cxx2
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",