summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-05-20 18:16:09 (GMT)
committerBrad King <brad.king@kitware.com>2021-05-25 14:48:25 (GMT)
commit0f2b1c9d1bc4f802a4ecb647f2ca7258fc378df5 (patch)
tree98fbb08a3fc0d2177d8352990a02f64268422859 /Source/cmNinjaTargetGenerator.cxx
parentdfc98774a2bca87bf6c2b986389763100fd59037 (diff)
downloadCMake-0f2b1c9d1bc4f802a4ecb647f2ca7258fc378df5.zip
CMake-0f2b1c9d1bc4f802a4ecb647f2ca7258fc378df5.tar.gz
CMake-0f2b1c9d1bc4f802a4ecb647f2ca7258fc378df5.tar.bz2
cmNinjaTargetGenerator: Remove GetSourceFilePath call with different semantics
Reference external object files using `ConvertToNinjaPath` directly. `GetSourceFilePath` is meant to reference source files to be compiled.
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index b22f8f7..5c365c4 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -987,7 +987,7 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements(
this->GeneratorTarget->GetExternalObjects(externalObjects, config);
for (cmSourceFile const* sf : externalObjects) {
auto objectFileName = this->GetGlobalGenerator()->ExpandCFGIntDir(
- this->GetSourceFilePath(sf), config);
+ this->ConvertToNinjaPath(sf->GetFullPath()), config);
if (!cmSystemTools::StringEndsWith(objectFileName,
cmToCStr(pchExtension))) {
this->Configs[config].Objects.push_back(objectFileName);