summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-01 13:02:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-01 13:02:15 (GMT)
commita9d5a0bf4bb5e9e0281032ddb1a0491b53c5a53c (patch)
treeaf8c59b8b794804e7ad2952e7467452799e6d35a /Source/cmNinjaTargetGenerator.cxx
parentea0d24c70121909e333120f39b15be58120dd73a (diff)
parent887a8874c343e88ccfca4098584cea91ab8138e6 (diff)
downloadCMake-a9d5a0bf4bb5e9e0281032ddb1a0491b53c5a53c.zip
CMake-a9d5a0bf4bb5e9e0281032ddb1a0491b53c5a53c.tar.gz
CMake-a9d5a0bf4bb5e9e0281032ddb1a0491b53c5a53c.tar.bz2
Merge topic 'compile-commands-output-field'
887a8874c3 EXPORT_COMPILE_COMMANDS: add `output` field Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7844
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index ae6a510..fba0ff9 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -2010,7 +2010,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)