ENH: add CMAKE_SYSTEM_PROCESSOR

This commit is contained in:
Bill Hoffman 2003-06-11 10:07:57 -04:00
parent 6effa1c7b0
commit 3021918293
2 changed files with 4 additions and 1 deletions

View File

@ -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)

View File

@ -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)