From 50f2bb3e4d327a5d55e62a897722ed46ed05a6d1 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 30 Sep 2023 00:37:41 +0800 Subject: fix ci error for bsd --- tests/projects/c++/linkorders/xmake.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/projects/c++/linkorders/xmake.lua b/tests/projects/c++/linkorders/xmake.lua index 8a5f1d18c..9a8834e41 100644 --- a/tests/projects/c++/linkorders/xmake.lua +++ b/tests/projects/c++/linkorders/xmake.lua @@ -1,6 +1,8 @@ add_rules("mode.debug", "mode.release") -add_requires("libpng") +if not is_host("bsd") then + add_requires("libpng") +end target("bar") set_kind("shared") @@ -22,7 +24,11 @@ target("demo") if is_plat("macosx") then add_frameworks("Foundation", "CoreFoundation") end - add_linkorders("framework::Foundation", "png16", "foo") + if is_host("bsd") then + add_linkorders("framework::Foundation", "foo") + else + add_linkorders("framework::Foundation", "png16", "foo") + end add_linkorders("dl", "linkgroup::syslib") add_linkgroups("m", "pthread", {name = "syslib"}) -- cgit v1.3.1