Author: brane
Date: Thu May 29 22:17:32 2025
New Revision: 1925961

URL: http://svn.apache.org/viewvc?rev=1925961&view=rev
Log:
Our CMake build detedted ARM64 Windows as 32-bit. Oops.

* build/SerfPlatform.cmake: Use the CMAKE_GENERATOR_PLATFORM variable
   to guess the target architecture, because CMAKE_GENERATOR doesn't
   contain it, even with recent Visual Studio builds. Display the platform
   name along with what we detected.

Modified:
    serf/trunk/build/SerfPlatform.cmake

Modified: serf/trunk/build/SerfPlatform.cmake
URL: 
http://svn.apache.org/viewvc/serf/trunk/build/SerfPlatform.cmake?rev=1925961&r1=1925960&r2=1925961&view=diff
==============================================================================
--- serf/trunk/build/SerfPlatform.cmake (original)
+++ serf/trunk/build/SerfPlatform.cmake Thu May 29 22:17:32 2025
@@ -28,12 +28,12 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "Lin
   message(STATUS "Target platform is Linux")
 elseif(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
   set(SERF_WINDOWS TRUE)
-  if(CMAKE_GENERATOR MATCHES "(Win64|IA64)")
+  if(CMAKE_GENERATOR_PLATFORM MATCHES "(x64|ARM64|IA64)")
     set(SERF_WIN64 TRUE)
-    message(STATUS "Target platform is Windows (64-bit)")
+    message(STATUS "Target platform is Windows 
(64-bit/${CMAKE_GENERATOR_PLATFORM})")
   else()
     set(SERF_WIN32 TRUE)
-    message(STATUS "Target platform is Windows (32-bit)")
+    message(STATUS "Target platform is Windows 
(32-bit/${CMAKE_GENERATOR_PLATFORM})")
   endif()
 else()
   set(SERF_UNIX TRUE)


Reply via email to