Add `packagedeps` for hdf5 (#2975)

hdf5 cannot found if `packagedeps` is not set
pull/2979/head
provefar 11 months ago committed by GitHub
parent ddb8f6728c
commit 728f960688
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/m/matio/xmake.lua

@ -37,7 +37,13 @@ package("matio")
table.insert(configs, "-DMATIO_DEFAULT_FILE_VERSION=" .. package:config("default_file_version"))
io.replace("CMakeLists.txt", "include(cmake/tools.cmake)", "", {plain = true})
io.replace("CMakeLists.txt", "include(cmake/test.cmake)", "", {plain = true})
import("package.tools.cmake").install(package, configs)
local packagedeps = {}
if package:config("hdf5") then
table.insert(packagedeps, "hdf5")
end
import("package.tools.cmake").install(package, configs, {packagedeps = packagedeps})
end)
on_test(function (package)

Loading…
Cancel
Save