mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-15 19:50:31 -06:00
cmNinjaTargetGenerator: Remove GetSourceFilePath call with different semantics
Reference external object files using `ConvertToNinjaPath` directly. `GetSourceFilePath` is meant to reference source files to be compiled.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user