File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ include (CheckIncludeFile )
12
23file (GLOB hdrs "*.h" )
34file (GLOB srcs "*.cpp" )
@@ -33,6 +34,13 @@ if (BUILD_CLI)
3334 endif ()
3435 target_link_libraries (cppcheck ${CMAKE_THREAD_LIBS_INIT} )
3536
37+ if (NOT MSVC )
38+ check_include_file (execinfo.h HAVE_EXECINFO_H "-x c++" )
39+ if (HAVE_EXECINFO_H)
40+ target_compile_definitions (-DHAVE_EXECINFO_H )
41+ endif ()
42+ endif ()
43+
3644 add_dependencies (cppcheck copy_cfg )
3745 add_dependencies (cppcheck copy_addons )
3846 add_dependencies (cppcheck copy_platforms )
Original file line number Diff line number Diff line change 206206#define USE_WINDOWS_SEH
207207#endif
208208
209- #if !defined(NO_UNIX_BACKTRACE_SUPPORT) && defined(__GNUC__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__SVR4) && !defined(__QNX__) && !defined(_AIX)
209+ #if !defined(NO_UNIX_BACKTRACE_SUPPORT) && ( defined(HAVE_EXECINFO_H) || (defined( __GNUC__) && !defined(__APPLE__) && !defined(__CYGWIN__) && !defined(__MINGW32__) && !defined(__NetBSD__) && !defined(__OpenBSD__) && !defined(__SVR4) && !defined(__QNX__) && !defined(_AIX)) )
210210#define USE_UNIX_BACKTRACE_SUPPORT
211211#endif
212212
You can’t perform that action at this time.
0 commit comments