diff options
Diffstat (limited to 'xmake/core/package/package.lua')
| -rw-r--r-- | xmake/core/package/package.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 24fe66ea2..b77b24aeb 100644 --- a/xmake/core/package/package.lua +++ b/xmake/core/package/package.lua @@ -421,6 +421,11 @@ function _instance:is_library() return self:kind() == nil or self:kind() == "library" end +-- is template package? +function _instance:is_template() + return self:kind() == "template" +end + -- is header only? function _instance:is_headeronly() return self:is_library() and self:extraconf("kind", "library", "headeronly") |
