diff --git a/packages/o/openmp/xmake.lua b/packages/o/openmp/xmake.lua index 9242d220f..9cd6daf35 100644 --- a/packages/o/openmp/xmake.lua +++ b/packages/o/openmp/xmake.lua @@ -19,10 +19,9 @@ package("openmp") end) on_fetch(function (package) - for _, dep in ipairs(package:orderdeps()) do - if not dep:fetch() then - return - end + local libomp = package:dep("libomp") + if libomp and not libomp:fetch() then + return end local result = {} if package.has_tool then