cmake HAVE_PTHREAD_SETNAME_NP examples

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

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

Lewuathe/mlir-hello thirdparty/llvm-project/llvm/cmake/config-ix.cmake :382

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

hyperblast/beefweb cpp/server/CMakeLists.txt :34

check_symbol_exists(pthread_setname_np "pthread.h" HAVE_PTHREAD_SETNAME_NP)

percona/percona-server CMakeLists.txt :2115

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

logicalclocks/rondb CMakeLists.txt :2072

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #define _GNU_SOURCE 1
            #include <pthread.h>
            int main(int argc, char **argv) {
              pthread_setname_np(pthread_self(), \"\");
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

GoSSIP-SJTU/TripleDoggy cmake/config-ix.cmake :260

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

ceph/ceph cmake/modules/CephChecks.cmake :36

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

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

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

polardb/polardbx-engine CMakeLists.txt :2024

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

john30/ebusd CMakeLists.txt :73

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

percona/percona-xtrabackup CMakeLists.txt :2060

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

GreatSQL/GreatSQL CMakeLists.txt :2078

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

qtfreet00/llvm-obfuscator cmake/config-ix.cmake :253

check_library_exists(pthread pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

qtfreet00/llvm-obfuscator cmake/config-ix.cmake :256

check_library_exists(c pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

Froser/gamemachine src/3rdparty/openal-soft-1.19.1/CMakeLists.txt :665

CHECK_SYMBOL_EXISTS(pthread_setname_np "pthread.h;pthread_np.h" HAVE_PTHREAD_SETNAME_NP)

Froser/gamemachine src/3rdparty/openal-soft-1.19.1/CMakeLists.txt :692

CHECK_SYMBOL_EXISTS(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

H-uru/Plasma cmake/CompilerChecks.cmake :17

check_cxx_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

axmolengine/axmol 3rdparty/openal/CMakeLists.txt :595

check_symbol_exists(pthread_setname_np "pthread.h;pthread_np.h" HAVE_PTHREAD_SETNAME_NP)

axmolengine/axmol 3rdparty/openal/CMakeLists.txt :600

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/doom3/neo/externlibs/openal-soft/CMakeLists.txt :574

check_symbol_exists(pthread_setname_np "pthread.h;pthread_np.h" HAVE_PTHREAD_SETNAME_NP)

glKarin/com.n0n3m4.diii4a Q3E/src/main/jni/doom3/neo/externlibs/openal-soft/CMakeLists.txt :579

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #define _GNU_SOURCE 1
            #include <pthread.h>
            int main(int argc, char **argv) {
              pthread_setname_np(pthread_self(), \"\");
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

christianparpart/x0 CMakeLists.txt :119

CHECK_LIBRARY_EXISTS(pthread pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

percona/percona-xtradb-cluster CMakeLists.txt :2114

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

facebook/mysql-5.6 CMakeLists.txt :2079

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

root-project/root interpreter/llvm-project/llvm/cmake/config-ix.cmake :358

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

o2e/OLLVM-9.0.1 cmake/config-ix.cmake :281

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

yrnkrn/zapcc cmake/config-ix.cmake :291

check_library_exists(pthread pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

yrnkrn/zapcc cmake/config-ix.cmake :294

check_library_exists(c pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

kcat/openal-soft CMakeLists.txt :647

check_symbol_exists(pthread_setname_np "pthread.h;pthread_np.h" HAVE_PTHREAD_SETNAME_NP)

kcat/openal-soft CMakeLists.txt :652

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #define _GNU_SOURCE 1
            #include <pthread.h>
            int main(int argc, char **argv) {
              pthread_setname_np(pthread_self(), \"\");
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

NVIDIA/MDL-SDK src/mdl/jit/llvm/dist/cmake/config-ix.cmake :296

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

yazhiwang/ollvm-tll cmake/config-ix.cmake :291

check_library_exists(pthread pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

yazhiwang/ollvm-tll cmake/config-ix.cmake :294

check_library_exists(c pthread_setname_np "" HAVE_PTHREAD_SETNAME_NP)

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

check_c_source_compiles("
            #define _GNU_SOURCE 1
            #include <pthread.h>
            int main(int argc, char **argv) {
              pthread_setname_np(pthread_self(), \"\");
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

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

check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)

mysql/mysql-server CMakeLists.txt :2136

CHECK_C_SOURCE_COMPILES("
  #include <pthread.h>

  int main(int ac, char **av)
  {
    const char *thread_name= 0;
    int ret = pthread_setname_np(pthread_self(), thread_name);
    return ret;
  }"
  HAVE_PTHREAD_SETNAME_NP)

GANGE666/xVMP src/cmake/config-ix.cmake :270

check_symbol_exists(pthread_setname_np pthread.h HAVE_PTHREAD_SETNAME_NP)

manticoresoftware/manticoresearch cmake/check_vitable_pthread_setname_np.cmake :3

CHECK_CXX_SOURCE_COMPILES ( "
#define _GNU_SOURCE
#include <pthread.h>
#ifdef __CLASSIC_C__
int main() {
	int ac;
	char*av[];
#else
int main(int ac, char*av[]){
#endif
	pthread_t thread;
	pthread_setname_np (thread, \"test\");
	return 0;
}" HAVE_PTHREAD_SETNAME_NP )

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

check_c_source_compiles("
            #include <pthread.h>
            int main(int argc, char **argv) {
              #ifdef __APPLE__
              pthread_setname_np(\"\");
              #else
              pthread_setname_np(pthread_self(),\"\");
              #endif
              return 0;
            }" HAVE_PTHREAD_SETNAME_NP)

feather-wallet/feather contrib/depends/patches/libusb/CMakeLists.txt :37

check_function_exists(pthread_setname_np        HAVE_PTHREAD_SETNAME_NP)