Fixes compilation of libevent under debug mode MSVC (#2037)

pull/2041/head
xiangbuchule 2 years ago committed by GitHub
parent 28f4a6fcd3
commit e11d5c0073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      packages/l/libevent/xmake.lua

@ -43,6 +43,7 @@ package("libevent")
table.insert(configs, "-DEVENT__DISABLE_MBEDTLS=" .. (package:config("mbedtls") and "OFF" or "ON"))
if package:is_plat("windows") then
table.insert(configs, "-DEVENT__MSVC_STATIC_RUNTIME=" .. (package:config("vs_runtime"):startswith("MT") and "ON" or "OFF"))
table.insert(configs, "-DCMAKE_COMPILE_PDB_OUTPUT_DIRECTORY=''")
end
import("package.tools.cmake").install(package, configs)
end)

Loading…
Cancel
Save