mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
19 lines
404 B
Diff
19 lines
404 B
Diff
|
--- a/CMakeLists.txt
|
||
|
+++ b/CMakeLists.txt
|
||
|
@@ -401,4 +401,7 @@
|
||
|
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)
|
||
|
@@ -430,6 +433,7 @@
|
||
|
]=] HAVE_SYMBOLIZE)
|
||
|
|
||
|
cmake_pop_check_state ()
|
||
|
+ endif()
|
||
|
|
||
|
if (HAVE_SYMBOLIZE)
|
||
|
set (HAVE_STACKTRACE 1)
|