diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2020-02-03 20:31:15 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-02-03 20:31:26 (GMT) |
commit | f4e02c46fc2b07836f6e35b92681f043f26f2361 (patch) | |
tree | e3205ae4eb97caa2b3d2a387028653c91fa2c866 /Source/cmGlobalNinjaGenerator.cxx | |
parent | 5f04dfe57ebf1abee29101228844ebaa721356a2 (diff) | |
download | CMake-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.cxx | 2 |
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); |