diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-15 00:20:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-05-15 00:20:00 (GMT) |
commit | bdb7d25e49c911803b06a8e0998c4b187b7bbf9e (patch) | |
tree | f2823aacdafccd68c367be26832b0451c19c126a | |
parent | 6782a6a14cceaef5eee8c4dc3ca8dfc92df36de8 (diff) | |
download | CMake-bdb7d25e49c911803b06a8e0998c4b187b7bbf9e.zip CMake-bdb7d25e49c911803b06a8e0998c4b187b7bbf9e.tar.gz CMake-bdb7d25e49c911803b06a8e0998c4b187b7bbf9e.tar.bz2 |
ENH: fix module
-rw-r--r-- | Modules/CMakeDetermineSystem.cmake | 8 |
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}") |