shaderc: fix msvc runtimes (#3943)

pull/3945/head
star9029 9 months ago committed by GitHub
parent 34f189334c
commit 6141f5afee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      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

Loading…
Cancel
Save