1diff -Npur glog/CMakeLists.txt glog-patch/CMakeLists.txt 2--- glog/CMakeLists.txt 2019-03-22 10:51:46.000000000 +0800 3+++ glog-patch/CMakeLists.txt 2021-04-01 10:32:25.753140500 +0800 4@@ -64,7 +64,6 @@ check_include_file (dlfcn.h HAVE_DLFCN_H 5 check_include_file (execinfo.h HAVE_EXECINFO_H) 6 check_include_file (glob.h HAVE_GLOB_H) 7 check_include_file (inttypes.h HAVE_INTTYPES_H) 8-check_include_file (libunwind.h HAVE_LIBUNWIND_H) 9 check_include_file (memory.h HAVE_MEMORY_H) 10 check_include_file (pwd.h HAVE_PWD_H) 11 check_include_file (stdint.h HAVE_STDINT_H) 12@@ -80,7 +79,6 @@ check_include_file (syscall.h HAVE_SYSCA 13 check_include_file (syslog.h HAVE_SYSLOG_H) 14 check_include_file (ucontext.h HAVE_UCONTEXT_H) 15 check_include_file (unistd.h HAVE_UNISTD_H) 16-check_include_file (unwind.h HAVE_UNWIND_H) 17 check_include_file (pwd.h HAVE_PWD_H) 18 19 check_include_file_cxx ("ext/hash_map" HAVE_EXT_HASH_MAP) 20@@ -116,12 +114,8 @@ check_cxx_compiler_flag (-Wunnamed-type- 21 # snprintf as an inline function 22 check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF) 23 24-check_library_exists (unwind get_static_proc_name "" HAVE_LIB_UNWIND) 25 check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP) 26 27-find_library (UNWIND_LIBRARY NAMES unwind DOC "unwind library") 28-mark_as_advanced (UNWIND_LIBRARY) 29- 30 check_c_source_compiles (" 31 #include <stdlib.h> 32 static void foo(void) __attribute__ ((unused)); 33@@ -470,10 +464,7 @@ add_library (glog 34 add_library(glog::glog ALIAS glog) 35 36 set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON) 37- 38-if (UNWIND_LIBRARY) 39- target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY}) 40-endif (UNWIND_LIBRARY) 41+set_target_properties (glog PROPERTIES OUTPUT_NAME mindspore_glog) 42 43 if (HAVE_DBGHELP) 44 target_link_libraries (glog PUBLIC dbghelp) 45