summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-02-03 20:31:15 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2020-02-03 20:31:26 (GMT)
commitf4e02c46fc2b07836f6e35b92681f043f26f2361 (patch)
treee3205ae4eb97caa2b3d2a387028653c91fa2c866 /Source/cmGlobalNinjaGenerator.cxx
parent5f04dfe57ebf1abee29101228844ebaa721356a2 (diff)
downloadCMake-f4e02c46fc2b07836f6e35b92681f043f26f2361.zip
CMake-f4e02c46fc2b07836f6e35b92681f043f26f2361.tar.gz
CMake-f4e02c46fc2b07836f6e35b92681f043f26f2361.tar.bz2
cmGlobalNinjaGenerator: run ninja tools in the build directory
Fixes: #20303
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r--Source/cmGlobalNinjaGenerator.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx
index fd67f12..f7694ff 100644
--- a/Source/cmGlobalNinjaGenerator.cxx
+++ b/Source/cmGlobalNinjaGenerator.cxx
@@ -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);