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:12:59 (GMT)
commit2f30b29ac3cbd4ba36ccaf2bee89a4a565a03c6d (patch)
treeda4dbe56a0198a038d37a6b1f2a7f5ceb4e0f0eb /Source/cmFileAPICodemodel.cxx
parenta03780c4c36e6402731f65e0e43a115caf85365c (diff)
parenta3a85524cd133888288689871e69da76f2267eda (diff)
downloadCMake-2f30b29ac3cbd4ba36ccaf2bee89a4a565a03c6d.zip
CMake-2f30b29ac3cbd4ba36ccaf2bee89a4a565a03c6d.tar.gz
CMake-2f30b29ac3cbd4ba36ccaf2bee89a4a565a03c6d.tar.bz2
Merge topic 'fileapi-file-sets-base-dirs-relative' into release-3.28
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;