diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake index b40464210..c91df3f39 100644 --- a/cmake/sdlchecks.cmake +++ b/cmake/sdlchecks.cmake @@ -849,7 +849,7 @@ macro(CheckPTHREAD) check_c_source_compiles(" #include int main(int argc, char **argv) { - #ifdef SDL_PLATFORM_APPLE + #ifdef __APPLE__ pthread_setname_np(\"\"); #else pthread_setname_np(pthread_self(),\"\");