diff options
author | Brad King <brad.king@kitware.com> | 2023-11-20 14:12:42 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-11-20 14:13:01 (GMT) |
commit | b6845a689e379f2cde989dec070dd94855067fcb (patch) | |
tree | 295d7d0692b07a2653f349140bfa799067cc9d99 /Source/cmFileAPICodemodel.cxx | |
parent | 79811a2d2bb990715a3230b23ed4848109d93269 (diff) | |
parent | a3a85524cd133888288689871e69da76f2267eda (diff) | |
download | CMake-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.cxx | 2 |
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; |