summaryrefslogtreecommitdiffstats
path: root/Source/cmFileSet.cxx
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-02-07 23:01:00 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-08-17 18:42:53 (GMT)
commit80d65443982ca1b2c98c84ae86e2bfccdbdd7678 (patch)
tree10a09814846a5eb88663d9de29e7de8175c24425 /Source/cmFileSet.cxx
parent3dc6676ecc4ef8a74b057f284f123fd54e867fa4 (diff)
downloadCMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.zip
CMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.tar.gz
CMake-80d65443982ca1b2c98c84ae86e2bfccdbdd7678.tar.bz2
cxxmodules: generate synthetic targets as an initial pass
We need to be able to construct BMIs that will be usable from the client modules for the target importing the module, so create BMI-only compilation rules for `IMPORTED` targets to create these BMIs.
Diffstat (limited to 'Source/cmFileSet.cxx')
-rw-r--r--Source/cmFileSet.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmFileSet.cxx b/Source/cmFileSet.cxx
index 48a2570..bcf7fba 100644
--- a/Source/cmFileSet.cxx
+++ b/Source/cmFileSet.cxx
@@ -7,6 +7,7 @@
#include <utility>
#include <vector>
+#include <cmext/algorithm>
#include <cmext/string_view>
#include "cmsys/RegularExpression.hxx"
@@ -88,6 +89,12 @@ cmFileSet::cmFileSet(cmake& cmakeInstance, std::string name, std::string type,
{
}
+void cmFileSet::CopyEntries(cmFileSet const* fs)
+{
+ cm::append(this->DirectoryEntries, fs->DirectoryEntries);
+ cm::append(this->FileEntries, fs->FileEntries);
+}
+
void cmFileSet::ClearDirectoryEntries()
{
this->DirectoryEntries.clear();