Fix xtensor versions dependencies (#4113)

xtensor require a specific major version of their dependencies
https://github.com/xtensor-stack/xtensor?tab=readme-ov-file#dependencies
pull/4114/head
A2va 6 months ago committed by GitHub
parent 7969ae37c4
commit f8fa483b09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 13
      packages/x/xtensor/xmake.lua

@ -14,10 +14,19 @@ package("xtensor")
add_versions("0.24.0", "37738aa0865350b39f048e638735c05d78b5331073b6329693e8b8f0902df713") add_versions("0.24.0", "37738aa0865350b39f048e638735c05d78b5331073b6329693e8b8f0902df713")
add_versions("0.23.10", "2e770a6d636962eedc868fef4930b919e26efe783cd5d8732c11e14cf72d871c") add_versions("0.23.10", "2e770a6d636962eedc868fef4930b919e26efe783cd5d8732c11e14cf72d871c")
add_configs("simd", {description = "Enable SIMD acceleration ", default = true, type = "boolean"})
add_deps("cmake") add_deps("cmake")
add_deps("xtl", "xsimd") add_deps("xtl ^0.7.0")
on_load("windows", "macosx", "linux", "mingw@windows", function (package)
if package:config("simd") then
package:add("deps", "xsimd ^11.0.0")
end
end)
on_install("windows", "macosx", "linux", "mingw@windows", function (package) on_install("windows", "macosx", "linux", "mingw@windows", function (package)
import("package.tools.cmake").install(package, {"-DXTENSOR_USE_XSIMD=ON"}) local configs = {"-DXTENSOR_USE_XSIMD=" .. (package:config("simd") and "ON" or "OFF")}
import("package.tools.cmake").install(package, configs, {packagedeps = "xsimd"})
end) end)
on_test(function (package) on_test(function (package)

Loading…
Cancel
Save