mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-17 09:11:36 -05:00
cmGlobalNinjaGenerator: run ninja tools in the build directory
Fixes: #20303
This commit is contained in:
@@ -547,6 +547,8 @@ void cmGlobalNinjaGenerator::CleanMetaData()
|
||||
auto run_ninja_tool = [this](std::vector<char const*> const& args) {
|
||||
std::vector<std::string> command;
|
||||
command.push_back(this->NinjaCommand);
|
||||
command.emplace_back("-C");
|
||||
command.emplace_back(this->GetCMakeInstance()->GetHomeOutputDirectory());
|
||||
command.emplace_back("-t");
|
||||
for (auto const& arg : args) {
|
||||
command.emplace_back(arg);
|
||||
|
||||
Reference in New Issue
Block a user