From 30219182938d2349bc3f17108dfe8690373db257 Mon Sep 17 00:00:00 2001
From: Bill Hoffman <bill.hoffman@kitware.com>
Date: Wed, 11 Jun 2003 10:07:57 -0400
Subject: ENH: add CMAKE_SYSTEM_PROCESSOR

---
 Modules/CMakeDetermineSystem.cmake | 4 +++-
 Modules/CMakeSystem.cmake.in       | 1 +
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index 7fa674d..b826a7f 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -30,12 +30,14 @@ IF(UNIX)
   IF(CMAKE_UNAME)
     EXEC_PROGRAM(uname ARGS -s OUTPUT_VARIABLE CMAKE_SYSTEM_NAME)
     EXEC_PROGRAM(uname ARGS -r OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
+    EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR)
     SET(CMAKE_UNAME ${CMAKE_UNAME} CACHE INTERNAL "uname command")
   ENDIF(CMAKE_UNAME)
 ELSE(UNIX)
   IF(WIN32)
     SET (CMAKE_SYSTEM_NAME "Windows")
-    SET (CMAKE_SYSTEM_VERSION "")
+    SET (CMAKE_SYSTEM_VERSION "")  
+    SET (CMAKE_SYSTEM_PROCESSOR "")
   ENDIF(WIN32)
 ENDIF(UNIX)
 
diff --git a/Modules/CMakeSystem.cmake.in b/Modules/CMakeSystem.cmake.in
index 1697b35..ad921f6 100644
--- a/Modules/CMakeSystem.cmake.in
+++ b/Modules/CMakeSystem.cmake.in
@@ -1,4 +1,5 @@
 SET(CMAKE_SYSTEM "@CMAKE_SYSTEM@")
 SET(CMAKE_SYSTEM_NAME "@CMAKE_SYSTEM_NAME@")
 SET(CMAKE_SYSTEM_VERSION "@CMAKE_SYSTEM_VERSION@")
+SET(CMAKE_SYSTEM_PROCESSOR "@CMAKE_SYSTEM_PROCESSOR@")
 SET(CMAKE_SYSTEM_LOADED 1)
-- 
cgit v0.12