summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineSystem.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-05-15 00:17:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-05-15 00:17:41 (GMT)
commit52a6524dbf10aa3e47c1abe70daf34c978f66770 (patch)
treee487118d2a5fde694abd641a0ca894899d96e807 /Modules/CMakeDetermineSystem.cmake
parent21564b4d616299c3602d2969f1a5a03337188810 (diff)
downloadCMake-52a6524dbf10aa3e47c1abe70daf34c978f66770.zip
CMake-52a6524dbf10aa3e47c1abe70daf34c978f66770.tar.gz
CMake-52a6524dbf10aa3e47c1abe70daf34c978f66770.tar.bz2
ENH: check return value for uname -p
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r--Modules/CMakeDetermineSystem.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake
index 4bc5ea3..5fa1d18 100644
--- a/Modules/CMakeDetermineSystem.cmake
+++ b/Modules/CMakeDetermineSystem.cmake
@@ -33,13 +33,13 @@ IF(UNIX)
EXEC_PROGRAM(uname ARGS -r OUTPUT_VARIABLE CMAKE_SYSTEM_VERSION)
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
RETURN_VALUE val)
- IF(${val} GREATER 0)
+ IF("${val}" GREATER 0)
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE CMAKE_SYSTEM_PROCESSOR
RETURN_VALUE val)
- ENDIF(${val} GREATER 0)
- IF(${val} GREATER 0)
+ ENDIF("${val}" GREATER 0)
+ IF("${val}" GREATER 0)
SET(CMAKE_SYSTEM_PROCESSOR "unknown")
- ENDIF(${val} GREATER 0)
+ ENDIF("${val}" GREATER 0)
SET(CMAKE_UNAME ${CMAKE_UNAME} CACHE INTERNAL "uname command")
# processor may have double quote in the name, and that needs to be removed
STRING(REGEX REPLACE "\"" "" CMAKE_SYSTEM_PROCESSOR "${CMAKE_SYSTEM_PROCESSOR}")