mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-13 18:12:32 +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:
committed by
Sam Lantinga
parent
9421828e7e
commit
19d4d64cfe
@@ -1211,6 +1211,7 @@ if(ANDROID)
|
|||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
if(HAVE_ARM_MODE)
|
if(HAVE_ARM_MODE)
|
||||||
set_property(SOURCE "${SDL3_SOURCE_DIR}/src/atomic/SDL_spinlock.c" APPEND_STRING PROPERTY COMPILE_FLAGS " -marm")
|
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()
|
endif()
|
||||||
|
|
||||||
if(SDL_AUDIO)
|
if(SDL_AUDIO)
|
||||||
|
|||||||
Reference in New Issue
Block a user