Update xmake.lua

pull/549/head
ruki 3 years ago committed by GitHub
parent 5430f32f65
commit 126bb9477d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      packages/o/opencv/xmake.lua

@ -170,7 +170,14 @@ package("opencv")
end)
on_test(function (package)
-- bin path envs will be missing for precompiled artifacts in old xmake version
local runtest = true
if package.is_built and not package:is_built() and xmake.version():le("2.5.6") then
runtest = false
end
if runtest then
os.vrun("opencv_version")
end
assert(package:check_cxxsnippets({test = [[
#include <iostream>
void test(int argc, char** argv) {

Loading…
Cancel
Save