瀏覽代碼

shaderc: fix msvc runtimes (#3943)

star9029 1 年之前
父節點
當前提交
6141f5afee
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/s/shaderc/xmake.lua

+ 2 - 0
packages/s/shaderc/xmake.lua

@@ -104,6 +104,8 @@ package("shaderc")
         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"))
         if package:is_plat("windows") then
+            io.replace("CMakeLists.txt", [[set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")]], "", {plain = true})
+            io.replace("CMakeLists.txt", [[set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")]], "", {plain = true})
             table.insert(configs, "-DSHADERC_ENABLE_SHARED_CRT=" .. (package:config("vs_runtime"):startswith("MT") and "OFF" or "ON"))
         end