cmake (3.27.7)

(root)/
share/
cmake-3.27/
Modules/
CheckForPthreads.c
       1  #include <pthread.h>
       2  
       3  void* start_routine(void* args)
       4  {
       5    return args;
       6  }
       7  
       8  int main(void)
       9  {
      10    /* This is a compile and link test, no code to actually run things. */
      11    pthread_t thread;
      12    pthread_create(&thread, 0, start_routine, 0);
      13    pthread_join(thread, 0);
      14    return 0;
      15  }