diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index fd54ed29e..f390fcbd0 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -836,7 +836,8 @@ macro(CheckPTHREAD) #include int main(int argc, char** argv) { return 0; }" HAVE_PTHREAD_NP_H) check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP) - check_function_exists(pthread_set_name_np HAVE_PTHREAD_SET_NAME_NP) set(CMAKE_REQUIRED_FLAGS) + check_function_exists(pthread_set_name_np HAVE_PTHREAD_SET_NAME_NP) + set(CMAKE_REQUIRED_FLAGS) set(SOURCE_FILES ${SOURCE_FILES} ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_systhread.c