diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2022-10-28 15:42:24 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2022-10-28 17:54:43 (GMT) |
commit | 887a8874c343e88ccfca4098584cea91ab8138e6 (patch) | |
tree | 1deb703c267fa45069c16d30cafbb706a5970408 /Source/cmNinjaTargetGenerator.cxx | |
parent | 5e1c5425651b215dbee89e46e146e87d10df268f (diff) | |
download | CMake-887a8874c343e88ccfca4098584cea91ab8138e6.zip CMake-887a8874c343e88ccfca4098584cea91ab8138e6.tar.gz CMake-887a8874c343e88ccfca4098584cea91ab8138e6.tar.bz2 |
EXPORT_COMPILE_COMMANDS: add `output` field
Also write for all configurations from multi-config generators.
This field was added in the Clang 5 documentation and not present in the
Clang 4 documentation (sometime between Dec 2016 and Mar 2017 according
to `web.archive.org`).
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index e4427f5..cf8c844 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -1998,7 +1998,8 @@ void cmNinjaTargetGenerator::ExportObjectCompileCommand( std::string cmdLine = this->GetLocalGenerator()->BuildCommandLine( compileCmds, outputConfig, outputConfig); - this->GetGlobalGenerator()->AddCXXCompileCommand(cmdLine, sourceFileName); + this->GetGlobalGenerator()->AddCXXCompileCommand(cmdLine, sourceFileName, + objectFileName); } void cmNinjaTargetGenerator::AdditionalCleanFiles(const std::string& config) |