Просмотр исходного кода

Merge topic 'cxxmodules-fileset-cache-fullpath' into release-3.28

0a18f9baad cmGeneratorTarget: collapse paths before querying the fileset cache

Acked-by: Kitware Robot <[email protected]>
Merge-request: !9286
Brad King 1 год назад
Родитель
Сommit
febe479570
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      Source/cmGeneratorTarget.cxx

+ 2 - 1
Source/cmGeneratorTarget.cxx

@@ -9435,7 +9435,8 @@ void cmGeneratorTarget::BuildFileSetInfoCache(std::string const& config) const
 
     for (auto const& it : files) {
       for (auto const& filename : it.second) {
-        per_config.FileSetCache[filename] = file_set;
+        auto collapsedFile = cmSystemTools::CollapseFullPath(filename);
+        per_config.FileSetCache[collapsedFile] = file_set;
       }
     }
   }