cmake HAVE___THREAD examples

Geocld/PeaSyo third-party/json-c/CMakeLists.txt :85

option(DISABLE_THREAD_LOCAL_STORAGE   "Disable using Thread-Local Storage (HAVE___THREAD)."   OFF)

Geocld/PeaSyo third-party/json-c/CMakeLists.txt :276

check_c_source_compiles(
    "__thread int x = 0; int main() { return 0; }"
    HAVE___THREAD)

mmp/pbrt-v3 CMakeLists.txt :276

CHECK_CXX_SOURCE_COMPILES ( "
__thread int x; int main() { }
" HAVE___THREAD )

mmp/pbrt-v3 CMakeLists.txt :282

ELSEIF ( HAVE___THREAD )

ByConity/ByConity contrib/jsonc-cmake/CMakeLists.txt :101

option(DISABLE_THREAD_LOCAL_STORAGE   "Disable using Thread-Local Storage (HAVE___THREAD)."   OFF)

ByConity/ByConity contrib/jsonc-cmake/CMakeLists.txt :272

check_c_source_compiles(
            "__thread int x = 0; int main() { return 0; }"
            HAVE___THREAD)

cburstedde/p4est cmake/config.cmake :72

check_symbol_exists(pthread_create pthread.h HAVE_LPTHREAD)