fix tbb version decision

pull/380/head
xq114 4 years ago
parent 3305d09286
commit 5c067eb129
  1. 4
      packages/t/tbb/fetch.lua

@ -1,3 +1,4 @@
import("core.base.semver")
import("lib.detect.find_path")
import("lib.detect.find_library")
@ -54,6 +55,9 @@ function main(package, opt)
else
result = package:find_package("tbb", opt)
end
if opt.require_version and result.version and not semver.satisfies(result.version, opt.require_version) then
result = nil
end
return result or false
end
end

Loading…
Cancel
Save