From dd88c6288d7117ffd8693dc79ce9ad28b39cfbf1 Mon Sep 17 00:00:00 2001 From: Denis <43519306+urasssopretty@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:17:00 +0300 Subject: [PATCH] fixed xmake warning for GLFW package (#4807) * fixed xmake warning for GLFW package warning: please use package:runtimes() or package:has_runtime() instead of package:config("vs_runtime") * Update xmake.lua --------- Co-authored-by: ruki --- packages/g/glfw/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/g/glfw/xmake.lua b/packages/g/glfw/xmake.lua index 789c7cce73e..9a5efd7df6b 100644 --- a/packages/g/glfw/xmake.lua +++ b/packages/g/glfw/xmake.lua @@ -53,7 +53,7 @@ package("glfw") table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF")) if package:is_plat("windows") then - table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=" .. (package:config("vs_runtime"):startswith("MT") and "OFF" or "ON")) + table.insert(configs, "-DUSE_MSVC_RUNTIME_LIBRARY_DLL=" .. (package:has_runtime("MT") and "OFF" or "ON")) end table.insert(configs, "-DGLFW_BUILD_X11=" .. (package:config("x11") and "ON" or "OFF")) table.insert(configs, "-DGLFW_BUILD_WAYLAND=" .. (package:config("wayland") and "ON" or "OFF"))