Commit 634705851dbe35204ac9171ccbc491886fa37b66

Ozkan Sezer 2023-02-13T11:56:10

cmake: really fix detection of pthread_setname_np() on Apple platforms.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/cmake/sdlchecks.cmake b/cmake/sdlchecks.cmake
index 830fefc..c4aec17 100644
--- a/cmake/sdlchecks.cmake
+++ b/cmake/sdlchecks.cmake
@@ -1020,9 +1020,9 @@ macro(CheckPTHREAD)
             #include <pthread.h>
             int main(int argc, char **argv) {
               #ifdef __APPLE__
-              pthread_setname_np(pthread_self());
+              pthread_setname_np(\"\");
               #else
-              pthread_setname_np(pthread_self(), \"\");
+              pthread_setname_np(pthread_self(),\"\");
               #endif
               return 0;
             }" HAVE_PTHREAD_SETNAME_NP)