From ff176fcd3727bfd6b6ea8935a76781ceb29d69fe Mon Sep 17 00:00:00 2001 From: xq114 <1140735506@qq.com> Date: Fri, 27 Sep 2024 21:06:03 +0800 Subject: [PATCH] add missing links --- packages/h/hdf5/xmake.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/h/hdf5/xmake.lua b/packages/h/hdf5/xmake.lua index 37d58d68f22..94325852aa6 100644 --- a/packages/h/hdf5/xmake.lua +++ b/packages/h/hdf5/xmake.lua @@ -24,7 +24,9 @@ package("hdf5") add_configs("cpplib", {description = "Build HDF5 C++ Library", default = false, type = "boolean"}) add_deps("cmake") - if is_plat("linux") then + if is_plat("windows") then + add_syslinks("shlwapi") + elseif is_plat("linux") then add_syslinks("dl") end on_load("windows", "macosx", "linux", function (package)