cmake HAVE_PTHREADS examples

crossuo/crossuo deps/sdl-2.0.10-c1be3add38/cmake/sdlchecks.cmake :850

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

AtomicGameEngine/AtomicGameEngine Source/ThirdParty/SDL/cmake/sdlchecks.cmake :837

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

AtomicGameEngine/AtomicGameEngine Source/ThirdParty/SDL/cmake/sdlchecks.cmake :845

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/7za/CMakeLists.txt :366

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/7zFM/CMakeLists.txt :173

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/7zG/CMakeLists.txt :138

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/7zr/CMakeLists.txt :191

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/7z_/CMakeLists.txt :109

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt :407

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/Rar/CMakeLists.txt :56

ENDIF(HAVE_PTHREADS)

punesemu/puNES src/extra/p7zip-17.04/CPP/7zip/CMAKE/SFXCon/CMakeLists.txt :125

ENDIF(HAVE_PTHREADS)

fraunhoferhhi/vvenc source/Lib/vvenc/CMakeLists.txt :209

target_compile_definitions( ${LIB_NAME} PRIVATE HAVE_PTHREADS )

ComputationalBiomechanicsLab/opensim-creator third_party/SDL/cmake/sdlchecks.cmake :852

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

skylersaleh/SkyEmu src/SDL2/cmake/sdlchecks.cmake :936

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

nvMcJohn/apitest thirdparty/SDL2-2.0.1/cmake/sdlchecks.cmake :648

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

nvMcJohn/apitest thirdparty/SDL2-2.0.1/cmake/sdlchecks.cmake :728

endif(HAVE_PTHREADS)

urho3d/urho3d Source/ThirdParty/SDL/cmake/sdlchecks.cmake :806

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

urho3d/urho3d Source/ThirdParty/SDL/cmake/sdlchecks.cmake :814

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

u3d-community/U3D Source/ThirdParty/SDL/cmake/sdlchecks.cmake :1007

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

htcondor/htcondor build/cmake/CondorConfigure.cmake :962

endif(HAVE_PTHREADS AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")

gridlab-d/gridlab-d CMakeLists.txt :70

option(HAVE_PTHREADS "pthreads library is present on the platform" ON)

openc2e/openc2e externals/SDL2/cmake/sdlchecks.cmake :938

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/7za/CMakeLists.txt :246

ENDIF(HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/7zFM/CMakeLists.txt :173

ENDIF(HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/7zG/CMakeLists.txt :138

ENDIF(HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/7zr/CMakeLists.txt :176

ENDIF(HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/7z_/CMakeLists.txt :109

ENDIF(HAVE_PTHREADS)

borisbrodski/sevenzipjbinding p7zip/CPP/7zip/CMAKE/Format7zFree/CMakeLists.txt :276

ENDIF(HAVE_PTHREADS)

tanis2000/binocle-c src/deps/sdl/cmake/sdlchecks.cmake :852

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

JulNadeauCA/libagar CMakeChecks.cmake :2278

check_c_source_compiles("
#include <pthread.h>
#include <signal.h>

static void *start_routine(void *arg)
{
	return (NULL);
}
int main(int argc, char *argv[])
{
	pthread_mutex_t mutex;
	pthread_t thread;
	pthread_mutex_init(&mutex, NULL);
	pthread_mutex_lock(&mutex);
	pthread_mutex_unlock(&mutex);
	pthread_mutex_destroy(&mutex);
	pthread_create(&thread, NULL, start_routine, NULL);
	return (0);
}
" HAVE_PTHREADS)

cadaver/turso3d ThirdParty/SDL/cmake/sdlchecks.cmake :814

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

mxcop/src-dgi extern/sdl/cmake/sdlchecks.cmake :844

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/deplibs/SDL2/cmake/sdlchecks.cmake :996

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

rbfx/rbfx Source/ThirdParty/SDL/cmake/sdlchecks.cmake :950

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

vengi-voxel/vengi contrib/libs/sdl2/cmake/sdlchecks.cmake :996

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

FalkorDB/FalkorDB deps/libcypher-parser/CMakeLists.txt :133

endif (HAVE_PTHREADS)

google/filament third_party/libsdl2/cmake/sdlchecks.cmake :910

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

Hork-Engine/Hork-Source ThirdParty/SDL3/cmake/sdlchecks.cmake :814

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

godlikepanos/anki-3d-engine ThirdParty/Sdl2/cmake/sdlchecks.cmake :936

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

godlikepanos/anki-3d-engine ThirdParty/Sdl3/cmake/sdlchecks.cmake :852

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

RavEngine/RavEngine deps/SDL/cmake/sdlchecks.cmake :852

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

klaussilveira/qengine vendor/SDL2-2.0.22/cmake/sdlchecks.cmake :936

check_c_source_compiles("
      #include <pthread.h>
      int main(int argc, char** argv) {
        pthread_attr_t type;
        pthread_attr_init(&type);
        return 0;
      }" HAVE_PTHREADS)

FilmKilns/FilmKilns src/sdl2/cmake/sdlchecks.cmake :890

check_c_source_runs("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)

cvet/fonline ThirdParty/SDL/cmake/sdlchecks.cmake :852

check_c_source_compiles("
        #include <pthread.h>
        int main(int argc, char** argv) {
          pthread_attr_t type;
          pthread_attr_init(&type);
          return 0;
        }" HAVE_PTHREADS)