diff options
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua index 418a35086..b60e5f79b 100644 --- a/xmake/core/project/project.lua +++ b/xmake/core/project/project.lua @@ -355,7 +355,10 @@ function project._load_targets() -- make targets local targets = {} for targetname, targetinfo in pairs(results) do - targets[targetname] = target.new(targetname, targetinfo, project) + local t = target.new(targetname, targetinfo, project) + if t and (t:get("enabled") == nil or t:get("enabled") == true) then + targets[targetname] = t + end end -- load and attach target deps and rules |
