diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index dbf4490da..6ba476fd1 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -859,7 +859,7 @@ endmacro() # PTHREAD_CFLAGS # PTHREAD_LIBS macro(CheckPTHREAD) - if(SDL_PTHREADS) + if(SDL_THREADS AND SDL_PTHREADS) if(ANDROID) # the android libc provides built-in support for pthreads, so no # additional linking or compile flags are necessary