https://github.com/Kitware/CMake
Raw File
Tip revision: 96541918c88c9a1647b44fbe07ca7d50e821a98a authored by Brad King on 16 July 2019, 11:08:05 UTC
CMake 3.14.6
Tip revision: 9654191
CheckForPthreads.c
#include <pthread.h>

void* start_routine(void* args)
{
  return args;
}

int main(void)
{
  /* This is a compile and link test, no code to actually run things. */
  pthread_t thread;
  pthread_create(&thread, 0, start_routine, 0);
  pthread_join(thread, 0);
  return 0;
}
back to top