mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2024-11-23 18:19:40 +00:00
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:
parent
9421828e7e
commit
19d4d64cfe
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user