From 462517092514e9751ab3e375fdcf2173d2c43399 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 19 Oct 2023 22:37:46 -0400 Subject: cmFileSet: add a query for includeable file set types --- Source/cmFileSet.cxx | 5 +++++ Source/cmFileSet.h | 2 ++ 2 files changed, 7 insertions(+) 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: -- cgit v0.12