Skip to content

Commit

Permalink
Add on_load function to volk package script to fix installing error…
Browse files Browse the repository at this point in the history
… on latest xmake version.
  • Loading branch information
JX-Master authored Jul 12, 2024
1 parent 4b9259c commit d1bccfa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/v/volk/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d1bccfa

Please sign in to comment.