Procházet zdrojové kódy

msgpack-c: add more platforms support (#7937)

star9029 před 3 týdny
rodič
revize
bd4eef1e53
1 změnil soubory, kde provedl 3 přidání a 3 odebrání
  1. 3 3
      packages/m/msgpack-c/xmake.lua

+ 3 - 3
packages/m/msgpack-c/xmake.lua

@@ -1,5 +1,4 @@
 package("msgpack-c")
-
     set_homepage("https://msgpack.org/")
     set_description("MessagePack implementation for C")
     set_license("BSL-1.0")
@@ -11,9 +10,10 @@ package("msgpack-c")
     add_versions("4.0.0", "420fe35e7572f2a168d17e660ef981a589c9cbe77faa25eb34a520e1fcc032c8")
 
     add_deps("cmake")
-    on_install("windows", "macosx", "linux", "mingw", function (package)
+
+    on_install(function (package)
         local configs = {"-DMSGPACK_BUILD_EXAMPLES=OFF", "-DMSGPACK_BUILD_TESTS=OFF", "-DMSGPACK_GEN_COVERAGE=OFF"}
-        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
+        table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
         table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
         import("package.tools.cmake").install(package, configs)
     end)