summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/cmake/cmakelists.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-03-05 22:41:06 +0800
committerruki <[email protected]>2021-03-05 22:41:06 +0800
commit97e94809e0ffb871b2e8a7554ad3eb54a034c525 (patch)
tree1f81d3047ff4b7cf615df5dacd044d606fadd5b8 /xmake/plugins/project/cmake/cmakelists.lua
parentecb7b50da9471f2ebc5d44d01c72e7860776e2c9 (diff)
add is_enabled
Diffstat (limited to 'xmake/plugins/project/cmake/cmakelists.lua')
-rw-r--r--xmake/plugins/project/cmake/cmakelists.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/plugins/project/cmake/cmakelists.lua b/xmake/plugins/project/cmake/cmakelists.lua
index 502b5bc51..022e9fd88 100644
--- a/xmake/plugins/project/cmake/cmakelists.lua
+++ b/xmake/plugins/project/cmake/cmakelists.lua
@@ -477,7 +477,7 @@ function _add_target(cmakelists, target)
-- is phony target?
local targetkind = target:kind()
- if target:isphony() then
+ if target:is_phony() then
return _add_target_phony(cmakelists, target)
elseif targetkind == "binary" then
_add_target_binary(cmakelists, target)