Browse Source

Update xmake.lua (#735)

ruki 3 years ago
parent
commit
a46cef21f4
1 changed files with 5 additions and 2 deletions
  1. 5 2
      packages/o/openmp/xmake.lua

+ 5 - 2
packages/o/openmp/xmake.lua

@@ -58,8 +58,11 @@ package("openmp")
                 return
             end
         end
-        -- need to detect the existance of flags
-        return {}
+        -- we need fetch the installed flags in on_load
+        local manifest = package:manifest_load()
+        if manifest then
+            return manifest.vars
+        end
     end)
 
     on_install("linux", "macosx", "windows", function (package)