diff options
author | Gregor Jasny <gjasny@googlemail.com> | 2016-12-26 15:08:51 (GMT) |
---|---|---|
committer | Gregor Jasny <gjasny@googlemail.com> | 2017-02-19 18:27:34 (GMT) |
commit | 0bbd993f618e4ded1d949e64ba778dfab3106262 (patch) | |
tree | 1305baa8b9535ecb03397a7f04b873ae0ea84774 /Modules/CMakeDetermineSystem.cmake | |
parent | 96b6afdc4289a3f04983ee5f5af82c83b422c583 (diff) | |
download | CMake-0bbd993f618e4ded1d949e64ba778dfab3106262.zip CMake-0bbd993f618e4ded1d949e64ba778dfab3106262.tar.gz CMake-0bbd993f618e4ded1d949e64ba778dfab3106262.tar.bz2 |
Make CMAKE_HOST_SYSTEM_NAME available in scripting context
Diffstat (limited to 'Modules/CMakeDetermineSystem.cmake')
-rw-r--r-- | Modules/CMakeDetermineSystem.cmake | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Modules/CMakeDetermineSystem.cmake b/Modules/CMakeDetermineSystem.cmake index 8675553..fb1a9ed 100644 --- a/Modules/CMakeDetermineSystem.cmake +++ b/Modules/CMakeDetermineSystem.cmake @@ -35,7 +35,6 @@ if(CMAKE_HOST_UNIX) find_program(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin ) 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|^GNU$") exec_program(uname ARGS -m OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR @@ -67,7 +66,6 @@ if(CMAKE_HOST_UNIX) endif() else() if(CMAKE_HOST_WIN32) - set (CMAKE_HOST_SYSTEM_NAME "Windows") if (DEFINED ENV{PROCESSOR_ARCHITEW6432}) set (CMAKE_HOST_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITEW6432}") else() |