diff --git a/packages/l/libsdl3/xmake.lua b/packages/l/libsdl3/xmake.lua index 73185961470..fc4a9ed82a5 100644 --- a/packages/l/libsdl3/xmake.lua +++ b/packages/l/libsdl3/xmake.lua @@ -63,7 +63,7 @@ package("libsdl3") end end) - on_install("!cross", function (package) + on_install("windows", "mingw", "linux|native", "macosx", "bsd", "android", "iphoneos", "wasm", function (package) local configs = {} table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release")) table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))