diff options
author | Felix Geyer <debfx@ubuntu.com> | 2014-09-10 12:55:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-09-10 13:06:33 (GMT) |
commit | 89d7a5a417dccbdc97107d30a6678e94ced9ca5d (patch) | |
tree | a72ddd2816f95c4338a888de0502a7c3c8018d6b /Modules | |
parent | e03b474fa83a1d17f0c74fc0b046a2eeedf13b60 (diff) | |
download | CMake-89d7a5a417dccbdc97107d30a6678e94ced9ca5d.zip CMake-89d7a5a417dccbdc97107d30a6678e94ced9ca5d.tar.gz CMake-89d7a5a417dccbdc97107d30a6678e94ced9ca5d.tar.bz2 |
Fix CMAKE_HOST_SYSTEM_PROCESSOR detection on GNU/Hurd (#15147)
On Debian GNU/Hurd 'uname -p' prints "unknown", so use 'uname -m'
instead.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/CMakeDetermineSystem.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake index 1c0941a..fe292ea 100644 --- a/Modules/CMakeDetermineSystem.cmake +++ b/Modules/CMakeDetermineSystem.cmake @@ -47,7 +47,7 @@ if(CMAKE_HOST_UNIX) if(CMAKE_UNAME) exec_program(uname ARGS -s OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_NAME) exec_program(uname ARGS -r OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_VERSION) - if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|CYGWIN.*|Darwin") + if(CMAKE_HOST_SYSTEM_NAME MATCHES "Linux|CYGWIN.*|Darwin|^GNU$") exec_program(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR RETURN_VALUE val) if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin" AND |