From 40890cb7d471e62679861b8704079b52bc1ae512 Mon Sep 17 00:00:00 2001 From: taynpg Date: Sun, 16 Feb 2025 15:17:48 +0800 Subject: [PATCH] =?UTF-8?q?xp=EF=BC=9A=E7=BB=86=E8=8A=82=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/MSystem.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/MSystem.cmake b/config/MSystem.cmake index 6c719c1..72379e8 100644 --- a/config/MSystem.cmake +++ b/config/MSystem.cmake @@ -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