diff --git a/packages/t/tbb/fetch.lua b/packages/t/tbb/fetch.lua index 84f482958..a4d34277e 100644 --- a/packages/t/tbb/fetch.lua +++ b/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