summaryrefslogtreecommitdiffstats
path: root/Source/cmFileAPICodemodel.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-11-20 14:12:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-11-20 14:13:01 (GMT)
commitb6845a689e379f2cde989dec070dd94855067fcb (patch)
tree295d7d0692b07a2653f349140bfa799067cc9d99 /Source/cmFileAPICodemodel.cxx
parent79811a2d2bb990715a3230b23ed4848109d93269 (diff)
parenta3a85524cd133888288689871e69da76f2267eda (diff)
downloadCMake-b6845a689e379f2cde989dec070dd94855067fcb.zip
CMake-b6845a689e379f2cde989dec070dd94855067fcb.tar.gz
CMake-b6845a689e379f2cde989dec070dd94855067fcb.tar.bz2
Merge topic 'fileapi-file-sets-base-dirs-relative'
a3a85524cd fileapi: Fix file sets' base directories relative to top source Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !8977
Diffstat (limited to 'Source/cmFileAPICodemodel.cxx')
-rw-r--r--Source/cmFileAPICodemodel.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFileAPICodemodel.cxx b/Source/cmFileAPICodemodel.cxx
index 3c1bc14..d069186 100644
--- a/Source/cmFileAPICodemodel.cxx
+++ b/Source/cmFileAPICodemodel.cxx
@@ -1635,7 +1635,7 @@ Json::Value Target::DumpFileSet(cmFileSet const* fs,
Json::Value baseDirs = Json::arrayValue;
for (auto const& directory : directories) {
- baseDirs.append(directory);
+ baseDirs.append(RelativeIfUnder(this->TopSource, directory));
}
fileSet["baseDirectories"] = baseDirs;