.. _FindThreadsCMake31:

FindThreadsCMake31
==================

.. cmake_module::

   This module determines the thread library of the system.

   This file is a modified copy from CMake 3.1. Do not edit this
   file. Remove this file once we rely on at least CMake 3.1.

   The following variables are set

   :code:`CMAKE_THREAD_LIBS_INIT`
      the thread library

   :code:`CMAKE_USE_SPROC_INIT`
      are we using sproc?

   :code:`CMAKE_USE_WIN32_THREADS_INIT`
      using WIN32 threads?

   :code:`CMAKE_USE_PTHREADS_INIT`
      are we using pthreads

   :code:`CMAKE_HP_PTHREADS_INIT`
      are we using hp pthreads

