cmake HAVE_PTHREAD_SETNAME_GNU examples

fluent/fluent-bit lib/librdkafka-2.10.1/packaging/cmake/try_compile/rdkafka_setup.cmake :19

try_compile(
    HAVE_PTHREAD_SETNAME_GNU
    "${CMAKE_CURRENT_BINARY_DIR}/try_compile"
    "${TRYCOMPILE_SRC_DIR}/pthread_setname_gnu_test.c"
    COMPILE_DEFINITIONS "-D_GNU_SOURCE"
    LINK_LIBRARIES "-lpthread"
)