### Navigation

- index
- next |
- previous |
- CMake »
- 3.0.2 Documentation »
- cmake-modules(7) »

# FindThreads

This module determines the thread library of the system.

The following variables are set

    CMAKE_THREAD_LIBS_INIT     - the thread library
    CMAKE_USE_SPROC_INIT       - are we using sproc?
    CMAKE_USE_WIN32_THREADS_INIT - using WIN32 threads?
    CMAKE_USE_PTHREADS_INIT    - are we using pthreads
    CMAKE_HP_PTHREADS_INIT     - are we using hp pthreads

For systems with multiple thread libraries, caller can set

    CMAKE_THREAD_PREFER_PTHREAD

### Navigation

- index
- next |
- previous |
- CMake »
- 3.0.2 Documentation »
- cmake-modules(7) »