diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-11 14:07:57 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2003-06-11 14:07:57 (GMT) |
commit | 30219182938d2349bc3f17108dfe8690373db257 (patch) | |
tree | f8207ed461bf5fae851b77369d4e5d91570eb135 /Modules/CMakeDetermineSystem.cmake | |
parent | 6effa1c7b0e4bc405fee2ff82160e52f52114fb1 (diff) | |
download | CMake-30219182938d2349bc3f17108dfe8690373db257.zip CMake-30219182938d2349bc3f17108dfe8690373db257.tar.gz CMake-30219182938d2349bc3f17108dfe8690373db257.tar.bz2 |
ENH: add CMAKE_SYSTEM_PROCESSOR
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r-- | Modules/CMakeDetermineSystem.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
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) |