ソースを参照

spdlog: fix installation test on Linux (#2617)

KkemChen 1 年間 前
コミット
aa1c253e0c
1 ファイル変更2 行追加0 行削除
  1. 2 0
      packages/s/spdlog/xmake.lua

+ 2 - 0
packages/s/spdlog/xmake.lua

@@ -30,6 +30,8 @@ package("spdlog")
     if is_plat("windows") then
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
         add_configs("wchar",  {description = "Support wchar api.", default = false, type = "boolean"})
+    elseif is_plat("linux", "bsd") then
+        add_syslinks("pthread")
     end
 
     on_load(function (package)