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'
This commit is contained in:
Anonymous Maarten 2022-12-21 10:20:59 +01:00 committed by Sam Lantinga
parent 9421828e7e
commit 19d4d64cfe
1 changed files with 1 additions and 0 deletions

View File

@ -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)