mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
cmFileSet: add a query for includeable file set types
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user