diff options
author | Brad King <brad.king@kitware.com> | 2020-02-04 13:28:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-02-04 13:28:46 (GMT) |
commit | 8b6b78363377faf61b19811d743499c5ba63b7bc (patch) | |
tree | 084c56644a8cebacf7e4828b9020e9f44ba1353a /Source | |
parent | 451ce7e4109b54783486e9243e2bfecdaeeaea2e (diff) | |
parent | f4e02c46fc2b07836f6e35b92681f043f26f2361 (diff) | |
download | CMake-8b6b78363377faf61b19811d743499c5ba63b7bc.zip CMake-8b6b78363377faf61b19811d743499c5ba63b7bc.tar.gz CMake-8b6b78363377faf61b19811d743499c5ba63b7bc.tar.bz2 |
Merge topic 'ninja-run-tool-in-builddir'
f4e02c46fc cmGlobalNinjaGenerator: run ninja tools in the build directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4319
Diffstat (limited to 'Source')
-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); |