diff options
author | Kyle Edwards <kyle.edwards@kitware.com> | 2023-11-16 19:36:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-11-17 12:59:05 (GMT) |
commit | a3a85524cd133888288689871e69da76f2267eda (patch) | |
tree | 1d0cccdf4bc6e94ad9a4317fc950082d6aa2f129 /Source | |
parent | d6c81467aad117a68ce80f76c9df811d18675a42 (diff) | |
download | CMake-a3a85524cd133888288689871e69da76f2267eda.zip CMake-a3a85524cd133888288689871e69da76f2267eda.tar.gz CMake-a3a85524cd133888288689871e69da76f2267eda.tar.bz2 |
fileapi: Fix file sets' base directories relative to top source
This field was added by commit b3e9fb67bb (file-api: support exporting
file set information, 2022-11-03, v3.26.0-rc1~389^2) but the relative
path convention used elsewhere was accidentally left out.
Fixes: #25422
Diffstat (limited to 'Source')
-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 d3683d4..ee09cc3 100644 --- a/Source/cmFileAPICodemodel.cxx +++ b/Source/cmFileAPICodemodel.cxx @@ -1611,7 +1611,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; |