cmake HAVE___SYNC_VAL_COMPARE_AND_SWAP examples

ucla-vision/xivo thirdparty/glog/CMakeLists.txt :170

check_cxx_source_compiles ("
int main(void)
{
  int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
}
" HAVE___SYNC_VAL_COMPARE_AND_SWAP)

chatopera/clause thirdparty/glog/CMakeLists.txt :147

check_c_source_compiles ("
int main(void)
{
  int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
}
" HAVE___SYNC_VAL_COMPARE_AND_SWAP)

feelpp/feelpp feelpp/contrib/glog/CMakeLists.txt :148

check_c_source_compiles ("
int main(void)
{
  int a; if (__sync_val_compare_and_swap(&a, 0, 1)) return 1; return 0;
}
" HAVE___SYNC_VAL_COMPARE_AND_SWAP)

plumonito/dtslam 3rdparty/glog_cmake/CMakeLists.txt :94

CHECK_FUNCTION_EXISTS(__sync_val_compare_and_swap HAVE___SYNC_VAL_COMPARE_AND_SWAP)

plumonito/dtslam 3rdparty/glog_cmake/CMakeLists.txt :103

CHECK_CXX_SOURCE_COMPILES("int main() { int val; __sync_val_compare_and_swap(&val, 1, 1); return 0; }" HAVE___SYNC_VAL_COMPARE_AND_SWAP)