SDL: cmake: disable precompiled header for SDL_spinlock.c when targeting Android

From 19d4d64cfe8ed2534e391fe00f9bba1c4729e2f8 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 21 Dec 2022 10:20:59 +0100
Subject: [PATCH] cmake: disable precompiled header for SDL_spinlock.c when
 targeting Android

This fixes the following error:
error: PCH file was compiled for the target 'thumbv7-none-linux-android16' but the current translation unit is being compiled for target 'armv7-none-linux-android16'
---
 CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a6833fcc021..e66007bb8d8a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1211,6 +1211,7 @@ if(ANDROID)
   cmake_pop_check_state()
   if(HAVE_ARM_MODE)
     set_property(SOURCE "${SDL3_SOURCE_DIR}/src/atomic/SDL_spinlock.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -marm")
+    set_source_files_properties(src/atomic/SDL_spinlock.c PROPERTIES SKIP_PRECOMPILE_HEADERS 1)
   endif()
 
   if(SDL_AUDIO)