diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-20 02:37:46 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2023-10-20 03:09:33 (GMT) |
commit | 462517092514e9751ab3e375fdcf2173d2c43399 (patch) | |
tree | 7e141caac58114fc9891cba1c942ceb69bda78bd | |
parent | 51f9d9f0a2a85744e9214aaa24054fabb9e79355 (diff) | |
download | CMake-462517092514e9751ab3e375fdcf2173d2c43399.zip CMake-462517092514e9751ab3e375fdcf2173d2c43399.tar.gz CMake-462517092514e9751ab3e375fdcf2173d2c43399.tar.bz2 |
cmFileSet: add a query for includeable file set types
-rw-r--r-- | Source/cmFileSet.cxx | 5 | ||||
-rw-r--r-- | Source/cmFileSet.h | 2 |
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: |