bullet3: Fix vs_runtime (#3036)

* bullet3: Fix vs_runtime

Fixes a compilation issue when compiling bullet3 as a debug package with MD vs_runtime

* Update xmake.lua
pull/3043/head
Jérôme Leclercq 11 months ago committed by GitHub
parent 632c1f4bfe
commit 047930c32d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      packages/b/bullet3/xmake.lua

@ -36,8 +36,9 @@ package("bullet3")
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DUSE_DOUBLE_PRECISION=" .. (package:config("double_precision") and "ON" or "OFF"))
table.insert(configs, "-DBUILD_EXTRAS=" .. (package:config("extras") and "ON" or "OFF"))
if package:is_plat("windows") then
table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=" .. (package:config("vs_runtime"):startswith("MD") and "ON" or "OFF"))
table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=ON") -- setting this to ON prevents Bullet from replacing flags
if package:is_plat("windows") and not package:config("vs_runtime"):endswith("d") then
table.insert(configs, "-DUSE_MSVC_RELEASE_RUNTIME_ALWAYS=ON") -- required to remove _DEBUG from cmake flags
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save