vcpkg/ports/glog/fix_crosscompile_symbolize.patch
Jia Yue Hua 078f136afc
[glog] upgrade to v0.6 (#25312)
* glog upgrade

* tmp

* is glog initialized

* fix glog dependency

* fix glog dependency

* fix folly abort call

* delete buildtrees

* fix folly abort call

* delete useless lines

* fix caffe2 isglog initialized

* make patches shorter

* glog fix typo

* glog fix tab

* Remove cpp patch since we don't need it

* Revert 6b8759a860

Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
2022-06-23 15:29:07 -07:00

23 lines
531 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index d314abe..d145517 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -450,6 +450,9 @@ endif (HAVE_CXX11_ATOMIC)
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)
@@ -480,6 +483,7 @@ if (WITH_SYMBOLIZE)
]=] HAVE_SYMBOLIZE)
cmake_pop_check_state ()
+ endif()
if (HAVE_SYMBOLIZE)
set (HAVE_STACKTRACE 1)