summaryrefslogtreecommitdiff
path: root/xmake/plugins/project/make/makefile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/plugins/project/make/makefile.lua')
-rw-r--r--xmake/plugins/project/make/makefile.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua
index 6a8d18650..75afafa92 100644
--- a/xmake/plugins/project/make/makefile.lua
+++ b/xmake/plugins/project/make/makefile.lua
@@ -392,8 +392,7 @@ function _make_all(makefile)
-- make all
local default = ""
for targetname, target in pairs(project.targets()) do
- local isdefault = target:get("default")
- if isdefault == nil or isdefault == true then
+ if target:is_default() then
default = default .. " " .. targetname
end
end