cmake: really fix detection of pthread_setname_np() on Apple platforms.
This commit is contained in:
1 parent
1194f52a5c
commit
634705851d
1 file changed
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user