2022-06-24 06:29:07 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-03-05 18:23:38 +08:00
|
|
|
index fe1d85f..985f5f5 100644
|
2022-04-30 02:40:30 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-03-05 18:23:38 +08:00
|
|
|
@@ -243,6 +243,9 @@ endif (HAVE_EXECINFO_BACKTRACE AND HAVE_EXECINFO_BACKTRACE_SYMBOLS)
|
2022-06-24 06:29:07 +08:00
|
|
|
|
2022-04-30 02:40:30 +08:00
|
|
|
if (WITH_SYMBOLIZE)
|
|
|
|
if (WIN32 OR CYGWIN)
|
|
|
|
+ if(CMAKE_CROSSCOMPILING)
|
|
|
|
+ set(HAVE_SYMBOLIZE 0)
|
|
|
|
+ else()
|
|
|
|
cmake_push_check_state (RESET)
|
|
|
|
set (CMAKE_REQUIRED_LIBRARIES DbgHelp)
|
2022-06-24 06:29:07 +08:00
|
|
|
|
2024-03-05 18:23:38 +08:00
|
|
|
@@ -273,6 +276,7 @@ if (WITH_SYMBOLIZE)
|
2022-04-30 02:40:30 +08:00
|
|
|
]=] HAVE_SYMBOLIZE)
|
2022-06-24 06:29:07 +08:00
|
|
|
|
2022-04-30 02:40:30 +08:00
|
|
|
cmake_pop_check_state ()
|
|
|
|
+ endif()
|
2022-06-24 06:29:07 +08:00
|
|
|
|
2022-04-30 02:40:30 +08:00
|
|
|
if (HAVE_SYMBOLIZE)
|
|
|
|
set (HAVE_STACKTRACE 1)
|