SDL: Build yuv_rgb_lsx.c with -mlsx

From 49adb23ad90f0dc0b9c0594b8fc244b171c22cf6 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 18 Jan 2024 13:26:09 +0100
Subject: [PATCH] Build yuv_rgb_lsx.c with -mlsx

---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 681eb11a1bcb..5985005551fa 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -839,6 +839,7 @@ if(SDL_ASSEMBLY)
       cmake_pop_check_state()
 
       if(COMPILER_SUPPORTS_LSX AND HAVE_LSXINTRIN_H)
+        set_property(SOURCE "${SDL3_SOURCE_DIR}/src/video/yuv2rgb/yuv_rgb_lsx.c" APPEND PROPERTY COMPILE_OPTIONS "-mlsx")
         set(HAVE_LSX TRUE)
       endif()
     endif()