add pthread for expresscpp

pull/77/head
ruki 4 years ago
parent 2b3b227df0
commit 2e27fa7fff
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 6
      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"))

Loading…
Cancel
Save