diff options
| author | ruki <[email protected]> | 2023-09-30 00:37:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-09-30 00:37:41 +0800 |
| commit | 50f2bb3e4d327a5d55e62a897722ed46ed05a6d1 (patch) | |
| tree | 265e67333858b89a31886ecff41a04ff7573f7db | |
| parent | bd0c7ed30aa7478ea6f0d82ae5e00ead6129f241 (diff) | |
fix ci error for bsd
| -rw-r--r-- | tests/projects/c++/linkorders/xmake.lua | 10 |
1 files 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"}) |
