mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 21:00:01 -05:00
Merge topic 'correct_ispc_path_computation'
9af93fef11ISPC: Handle OBJECT sources in different directories72ae15ebcbISPC: Ninja properly compute ISPC_HEADER_DIRECTORY location Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5581
This commit is contained in:
@@ -5086,9 +5086,14 @@ void cmGeneratorTarget::GetTargetObjectNames(
|
||||
objects.push_back(map_it->second);
|
||||
}
|
||||
|
||||
// We need to compute the relative path from the root of
|
||||
// of the object directory to handle subdirectory paths
|
||||
std::string rootObjectDir = this->GetObjectDirectory(config);
|
||||
rootObjectDir = cmSystemTools::CollapseFullPath(rootObjectDir);
|
||||
auto ispcObjects = this->GetGeneratedISPCObjects(config);
|
||||
for (std::string const& output : ispcObjects) {
|
||||
objects.push_back(cmSystemTools::GetFilenameName(output));
|
||||
auto relativePathFromObjectDir = output.substr(rootObjectDir.size());
|
||||
objects.push_back(relativePathFromObjectDir);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user