[Volk] Fix test when use header_only config (#1185)

pull/1190/head
Arthapz 3 years ago committed by GitHub
parent ab7040202b
commit 8ba47057dc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      packages/v/volk/xmake.lua

@ -51,5 +51,15 @@ package("volk")
end)
on_test(function (package)
assert(package:has_cfuncs("volkInitialize", {includes = "volk.h"}))
local defines
if package:config("header_only") then
defines = "VOLK_IMPLEMENTATION"
end
assert(package:check_csnippets({test = format([[
#include <volk.h>
void test() {
volkInitialize();
}
]], {configs = {defines = defines}})}))
end)
Loading…
Cancel
Save