improve libomp (#1361)

* improve libomp

* revert on_load
pull/1367/head
Hoildkv 2 years ago committed by GitHub
parent e9ce174bfb
commit 6d323eab58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      packages/l/libomp/xmake.lua

@ -10,6 +10,12 @@ package("libomp")
add_configs("shared", {description = "Build shared library.", default = true, type = "boolean"})
on_fetch("macosx", "linux", function (package, opt)
if opt.system then
return package:find_package("system::omp", {includes = "omp.h"})
end
end)
add_deps("cmake")
add_links("omp")

Loading…
Cancel
Save