cmake HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID examples

vectorgraphics/asymptote gc/CMakeLists.txt :513

check_c_source_compiles("
#define _GNU_SOURCE 1\n
#include <pthread.h>\n
int main(void) { (void)pthread_setname_np(\"thread-name\"); return 0; }"
    HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)

vectorgraphics/asymptote gc/CMakeLists.txt :520

add_definitions("-DHAVE_PTHREAD_SETNAME_NP_WITHOUT_TID")

vectorgraphics/asymptote gc/CMakeLists.txt :543

endif(HAVE_PTHREAD_SETNAME_NP_WITHOUT_TID)