diff options
author | Brad King <brad.king@kitware.com> | 2024-02-27 14:02:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-02-27 14:02:54 (GMT) |
commit | febe479570e96302bd4041cd1104fb95bc99e66d (patch) | |
tree | 906f5d81b424b53c07eb9db82d9062b6f3404143 | |
parent | 5feddb6f4b081fc3eac9682b68058ec758e244fb (diff) | |
parent | 0a18f9baad780deec8fe9952b28dd349252d7d81 (diff) | |
download | CMake-febe479570e96302bd4041cd1104fb95bc99e66d.zip CMake-febe479570e96302bd4041cd1104fb95bc99e66d.tar.gz CMake-febe479570e96302bd4041cd1104fb95bc99e66d.tar.bz2 |
Merge topic 'cxxmodules-fileset-cache-fullpath' into release-3.28
0a18f9baad cmGeneratorTarget: collapse paths before querying the fileset cache
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9286
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 40711a3..94bb8e1 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/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; } } } |