xp:细节判断。

This commit is contained in:
taynpg 2025-02-16 15:17:48 +08:00
parent b7b63f8f42
commit 40890cb7d4

View File

@ -25,7 +25,8 @@ elseif (WIN32)
execute_process(COMMAND ver
OUTPUT_VARIABLE VER_OUTPUT
OUTPUT_STRIP_TRAILING_WHITESPACE)
if(VER_OUTPUT MATCHES "XP")
if(VER_OUTPUT MATCHES "XP" OR VER_OUTPUT STREQUAL "")
message(STATUS "maybe Windows XP platform.")
set(SYSTEM_ARCH "x86")
else()
execute_process(COMMAND wmic os get osarchitecture