add mingw support to msgpack-cxx (#2167)

pull/2169/head
xpxz 2 years ago committed by GitHub
parent f6eb177c53
commit e24fc361f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/m/msgpack-cxx/xmake.lua

@ -10,7 +10,7 @@ package("msgpack-cxx")
add_configs("std", {description = "Choose C++ standard version.", default = "cxx17", type = "string", values = {"cxx98", "cxx11", "cxx14", "cxx17", "cxx20"}})
add_deps("cmake", "boost")
on_install("windows", "macosx", "linux", function (package)
on_install("windows", "macosx", "linux", "mingw", function (package)
local configs = {"-DMSGPACK_BUILD_EXAMPLES=OFF", "-DMSGPACK_BUILD_TESTS=OFF", "-DMSGPACK_BUILD_DOCS=OFF", "-DMSGPACK_USE_STATIC_BOOST=ON"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))

Loading…
Cancel
Save