ucla-vision/xivo
thirdparty/gperftools/CMakeLists.txt
:366
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __declspec(thread) int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
add_definitions(-DHAVE_TLS)
add_definitions(-DHAVE_OPENSSL -DHAVE_TLS)
check_c_source_compiles("
static __thread int tls;
int main(void)
{
return 0;
}" HAVE_TLS)
check_c_source_compiles("static __declspec(thread) int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0;" HAVE_TLS)
file( READ "${CMAKE_SOURCE_DIR}/3rdparty/cmake/tests/HAVE_TLS.c" _SOURCE )
CHECK_C_SOURCE_RUNS( "${_SOURCE}" HAVE_TLS )
set_property( CACHE GLOBAL_DEFINITIONS PROPERTY VALUE "${GLOBAL_DEFINITIONS} -DHAVE_TLS" )
check_c_source_compiles("static __declspec(thread) int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
add_definitions(-DHAVE_OPENSSL -DHAVE_TLS)
add_definitions(-DHAVE_OPENSSL -DHAVE_TLS)
check_c_source_compiles("static __declspec(thread) int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)
check_cxx_source_compiles("__thread int i; int main(){return 0;}" HAVE_TLS)
check_c_source_compiles("static __declspec(thread) int p = 0; int main() {}" HAVE_TLS)
check_c_source_compiles("static __thread int p = 0; int main() {}" HAVE_TLS)