star9029 1 月之前
父节点
当前提交
bc2b9414de
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/l/libwebsockets/xmake.lua

+ 1 - 0
packages/l/libwebsockets/xmake.lua

@@ -56,6 +56,7 @@ package("libwebsockets")
 
     on_install("!wasm", function (package)
         io.replace("CMakeLists.txt", "/WX", "", {plain = true})
+        io.replace("CMakeLists.txt", "set(CMAKE_MSVC_RUNTIME_LIBRARY MultiThreaded$<$<CONFIG:Debug>:Debug>DLL)", "", {plain = true})
         if not package:is_plat("linux") or not package:config("libcap") then
             io.replace("CMakeLists.txt", [[CHECK_LIBRARY_EXISTS(cap cap_set_flag "" LWS_HAVE_LIBCAP)]], "", {plain = true})
         end