!34528 [MS][LITE]Fix win32 glog build

Merge pull request !34528 from gongdaguo1/fix_win32_glog
This commit is contained in:
i-robot 2022-05-18 07:56:35 +00:00 committed by Gitee
commit b74c2caecc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 4 deletions

View File

@ -33,10 +33,7 @@ set(glog_option -DBUILD_TESTING=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON -DBUILD
-DCMAKE_BUILD_TYPE=Release)
if(WIN32 AND NOT MSVC)
execute_process(COMMAND "${CMAKE_C_COMPILER}" -dumpmachine
OUTPUT_VARIABLE i686_or_x86_64
)
if(i686_or_x86_64 MATCHES "^i686-")
if(CMAKE_SIZEOF_VOID_P EQUAL 4)
set(glog_option ${glog_option} -DHAVE_DBGHELP=ON)
endif()
endif()