Browse Source

spdlog: fix installation test on Linux (#2617)

KkemChen 1 year ago
parent
commit
aa1c253e0c
1 changed files with 2 additions and 0 deletions
  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
     if is_plat("windows") then
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
         add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})
         add_configs("wchar",  {description = "Support wchar api.", default = false, type = "boolean"})
         add_configs("wchar",  {description = "Support wchar api.", default = false, type = "boolean"})
+    elseif is_plat("linux", "bsd") then
+        add_syslinks("pthread")
     end
     end
 
 
     on_load(function (package)
     on_load(function (package)