Explorar o código

add pthread for expresscpp

ruki %!s(int64=5) %!d(string=hai) anos
pai
achega
2e27fa7fff
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      packages/e/expresscpp/xmake.lua

+ 5 - 1
packages/e/expresscpp/xmake.lua

@@ -12,7 +12,11 @@ package("expresscpp")
     add_deps("nlohmann_json", "fmt", {configs = {cmake = true}})
     add_deps("boost", {configs = {system = true}})
 
-    on_install("linux", "macosx", "windows", function (package)
+    if is_plat("linux") then
+        add_syslinks("pthread")
+    end
+
+    on_install("linux", "macosx", function (package)
         local configs = {}
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))