Skip to content

Commit

Permalink
Check in CMake for execinfo.h and backtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
berquist committed Jul 12, 2023
1 parent 32d7d98 commit bd86e3c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions experimental/cmake/sst.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ if(ZLIB_FOUND)
set(HAVE_LIBZ ON)
endif(ZLIB_FOUND)

check_include_file(execinfo.h HAVE_EXECINFO_H)
check_symbol_exists(backtrace "execinfo.h" HAVE_BACKTRACE)
check_include_file(mach/mach_time.h HAVE_MACH_MACH_TIME_H)
check_include_file(mach-o/dyld.h HAVE_MACH_O_DYLD_H)
check_symbol_exists(opendir "dirent.h" HAVE_OPENDIR)
Expand Down
6 changes: 6 additions & 0 deletions experimental/cmake_configure_files/sst_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
/* Define to 1 if you have the `argz_stringify' function. */
#cmakedefine HAVE_ARGZ_STRINGIFY 1

/* Defines if the backtrace function is avalible */
#cmakedefine HAVE_BACKTRACE 1

/* Define to 1 if you have the `closedir' function. */
#cmakedefine HAVE_CLOSEDIR 1

Expand Down Expand Up @@ -60,6 +63,9 @@
/* Define to 1 if the system has the type `error_t'. */
#cmakedefine HAVE_ERROR_T 1

/* Define to 1 if you have the <execinfo.h> header file. */
#cmakedefine HAVE_EXECINFO_H 1

/* Defines whether we have the hdf5 library */
#cmakedefine HAVE_HDF5

Expand Down

0 comments on commit bd86e3c

Please sign in to comment.