Browse Source

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 year ago
parent
commit
febe479570
1 changed files with 2 additions and 1 deletions
  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;
       }
     }
   }