We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4b75575 + 1826b35 commit 775da27Copy full SHA for 775da27
CMakeLists.txt
@@ -61,6 +61,13 @@ SET(EXECUTABLE_OUTPUT_PATH "" CACHE INTERNAL
61
"Where to put the executables for Domoticz"
62
)
63
64
+INCLUDE(CheckIncludeFile)
65
+CHECK_INCLUDE_FILE (execinfo.h HAVE_EXECINFO_H)
66
+
67
+IF(HAVE_EXECINFO_H)
68
+ ADD_DEFINITIONS(-DHAVE_EXECINFO_H)
69
+ENDIF(HAVE_EXECINFO_H)
70
71
#set(CMAKE_EXE_LINKER_FLAGS "-static")
72
73
# Macro for setting up precompiled headers. Usage:
main/domoticz.cpp
@@ -44,7 +44,7 @@
44
#include <string.h>
45
#endif
46
47
-#ifdef __gnu_linux__
+#ifdef HAVE_EXECINFO_H
48
#include <execinfo.h>
49
static void dumpstack(void) {
50
// Notes :
0 commit comments