mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Makefile: Enable progress messages for codegen target
This was left out of commit 197cb419d1 (add_custom_command: Add CODEGEN
support, 2024-05-27, v3.31.0-rc1~394^2).
This commit is contained in:
@@ -777,6 +777,10 @@ void cmGlobalUnixMakefileGenerator3::WriteConvenienceRules2(
|
||||
makeTargetName = cmStrCat(localName, "/codegen");
|
||||
commands.push_back(
|
||||
lg.GetRecursiveMakeCall(makefileName, makeTargetName));
|
||||
if (targetMessages) {
|
||||
lg.AppendEcho(commands, "Finished codegen for target " + name,
|
||||
cmLocalUnixMakefileGenerator3::EchoNormal, &progress);
|
||||
}
|
||||
this->AppendCodegenTargetDepends(depends, gtarget.get());
|
||||
rootLG.WriteMakeRule(ruleFileStream, "codegen rule for target.",
|
||||
makeTargetName, depends, commands, true);
|
||||
|
||||
@@ -1761,11 +1761,11 @@ void cmLocalUnixMakefileGenerator3::WriteLocalAllRules(
|
||||
if (regenerate) {
|
||||
depends.emplace_back("cmake_check_build_system");
|
||||
}
|
||||
commands.emplace_back(progressStartCommand);
|
||||
commands.push_back(this->GetRecursiveMakeCall(mf2Dir, recursiveTarget));
|
||||
this->CreateCDCommand(commands, this->GetBinaryDirectory(),
|
||||
this->GetCurrentBinaryDirectory());
|
||||
AppendEcho(commands, "Finished generating code",
|
||||
cmLocalUnixMakefileGenerator3::EchoColor::EchoGenerate);
|
||||
commands.emplace_back(progressFinishCommand);
|
||||
this->WriteMakeRule(ruleFileStream, "The main codegen target", "codegen",
|
||||
depends, commands, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user