summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmFileSet.cxx5
-rw-r--r--Source/cmFileSet.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmFileSet.cxx b/Source/cmFileSet.cxx
index bcf7fba..b74855f 100644
--- a/Source/cmFileSet.cxx
+++ b/Source/cmFileSet.cxx
@@ -80,6 +80,11 @@ bool cmFileSetVisibilityIsForInterface(cmFileSetVisibility vis)
return false;
}
+bool cmFileSetTypeCanBeIncluded(std::string const& type)
+{
+ return type == "HEADERS"_s;
+}
+
cmFileSet::cmFileSet(cmake& cmakeInstance, std::string name, std::string type,
cmFileSetVisibility visibility)
: CMakeInstance(cmakeInstance)
diff --git a/Source/cmFileSet.h b/Source/cmFileSet.h
index c508e2b..6ad4c9e 100644
--- a/Source/cmFileSet.h
+++ b/Source/cmFileSet.h
@@ -31,6 +31,8 @@ cmFileSetVisibility cmFileSetVisibilityFromName(cm::string_view name,
bool cmFileSetVisibilityIsForSelf(cmFileSetVisibility vis);
bool cmFileSetVisibilityIsForInterface(cmFileSetVisibility vis);
+bool cmFileSetTypeCanBeIncluded(std::string const& type);
+
class cmFileSet
{
public: