From e11d5c0073156260d5f1eb9c1a1c41f33a3c96d1 Mon Sep 17 00:00:00 2001 From: xiangbuchule <1787180562@qq.com> Date: Wed, 26 Apr 2023 16:07:01 +0800 Subject: [PATCH] Fixes compilation of libevent under debug mode MSVC (#2037) --- packages/l/libevent/xmake.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/l/libevent/xmake.lua b/packages/l/libevent/xmake.lua index 42bede398..28acb5eca 100644 --- a/packages/l/libevent/xmake.lua +++ b/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)