cmake HAVE_UNWIND_BACKTRACE examples

SwagSoftware/Kisak-Strike thirdparty/gperftools-2.8.1/CMakeLists.txt :354

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

ucla-vision/xivo thirdparty/gperftools/CMakeLists.txt :307

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

p4lang/open-p4studio pkgsrc/target-syslibs/third-party/gperftools/CMakeLists.txt :307

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

percona/percona-server extra/gperftools/gperftools-2.15/CMakeLists.txt :330

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

logicalclocks/rondb extra/gperftools/gperftools-2.15/CMakeLists.txt :330

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

percona/percona-xtrabackup extra/gperftools/gperftools-2.15/CMakeLists.txt :330

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

GoSSIP-SJTU/Armariris cmake/config-ix.cmake :158

check_symbol_exists(_Unwind_Backtrace "unwind.h" HAVE_UNWIND_BACKTRACE)

ucb-bar/esp-llvm cmake/config-ix.cmake :158

check_symbol_exists(_Unwind_Backtrace "unwind.h" HAVE_UNWIND_BACKTRACE)

percona/percona-xtradb-cluster extra/gperftools/gperftools-2.15/CMakeLists.txt :330

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

gperftools/gperftools CMakeLists.txt :262

check_cxx_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)

mysql/mysql-server extra/gperftools/gperftools-2.15/CMakeLists.txt :330

check_c_source_compiles("
  #include <unwind.h>
  int main()
  {
#if __APPLE__ || __FreeBSD__
#error OSX _Unwind_Backtrace recurses back to malloc
#endif
    &_Unwind_Backtrace;
    return 0;
  }"
  HAVE_UNWIND_BACKTRACE)