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

This commit is contained in:
Ozkan Sezer 2023-02-13 11:56:10 +03:00
parent 718a880f91
commit 9b061c04e7
1 changed files with 2 additions and 2 deletions

View File

@ -992,9 +992,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)