Skip to content

Commit 3448a28

Browse files
authored
mkl: add zstd dependency (#8433)
* mkl: add zstd dependency * update xmake.lua * update xmake.lua
1 parent 33fc59c commit 3448a28

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

packages/m/mkl/xmake.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ package("mkl")
127127
add_syslinks("pthread", "dl")
128128
end
129129

130+
add_deps("zstd", {configs = {private = true, tools = true}})
130131
on_load(function (package)
131132
-- Refer to [oneAPI Math Kernel Library Link Line Advisor](https://www.intel.com/content/www/us/en/developer/tools/oneapi/onemkl-link-line-advisor.html)
132133
-- to get the link option for MKL library.

packages/z/zstd/xmake.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ package("zstd")
2929
if package:config("cmake") then
3030
package:add("deps", "cmake")
3131
end
32+
if package:config("tools") then
33+
package:addenv("PATH", "bin")
34+
end
3235
if package:is_plat("windows") and package:config("shared") then
3336
package:add("defines", "ZSTD_DLL_IMPORT=1")
3437
end

0 commit comments

Comments
 (0)