cmake: more private definitions

This commit is contained in:
Edu García
2025-06-06 18:05:14 +01:00
committed by Sam Lantinga
parent 5826966873
commit d9af41b5ac
2 changed files with 11 additions and 1 deletions

View File

@@ -826,7 +826,7 @@ endmacro()
macro(CheckPTHREAD)
cmake_push_check_state()
if(SDL_PTHREADS)
if(ANDROID)
if(ANDROID OR SDL_PTHREADS_PRIVATE)
# the android libc provides built-in support for pthreads, so no
# additional linking or compile flags are necessary
elseif(LINUX)