Add `on_load` function to volk package script to fix installing error on latest xmake version. (#4632)

pull/4635/head
JXMaster 5 months ago committed by GitHub
parent f581fd74d1
commit e676808121
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 6
      packages/v/volk/xmake.lua

@ -65,6 +65,12 @@ package("volk")
import("package.tools.xmake").install(package)
end)
on_load(function (package)
if package:config("header_only") then
package:set("kind", "library", {headeronly = true})
end
end)
on_test(function (package)
local defines
if package:config("header_only") then

Loading…
Cancel
Save