.. _THREADS_PREFER_PTHREAD_FLAG:

THREADS_PREFER_PTHREAD_FLAG
===========================

.. cmake_variable:: THREADS_PREFER_PTHREAD_FLAG

   If the use of the -pthread compiler and linker flag is preferred then the
   caller can set this variable. Modifies the behaviour of :ref:`FindThreadsCMake31`.

