Skip to content

Commit

Permalink
fixed xmake warning for GLFW package (#4807)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
urasssopretty and waruqi authored Aug 1, 2024
1 parent 8e7b009 commit dd88c62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/g/glfw/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit dd88c62

Please sign in to comment.