summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorZach Mullen <zach.mullen@kitware.com>2009-10-09 15:10:06 (GMT)
committerZach Mullen <zach.mullen@kitware.com>2009-10-09 15:10:06 (GMT)
commit8fe2738096cc771bfaebe2f5dd51537e1f1c132e (patch)
tree52cc2647f4c9db9b5700264987f8ed87f1726304 /Source
parent89954fe9a26ae2f08fef442d328fc1be9312782b (diff)
downloadCMake-8fe2738096cc771bfaebe2f5dd51537e1f1c132e.zip
CMake-8fe2738096cc771bfaebe2f5dd51537e1f1c132e.tar.gz
CMake-8fe2738096cc771bfaebe2f5dd51537e1f1c132e.tar.bz2
Added OS Platform (cpu architecture) detection support to windows systems
Diffstat (limited to 'Source')
-rw-r--r--Source/kwsys/SystemInformation.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx
index 89fdf9b..23d396f 100644
--- a/Source/kwsys/SystemInformation.cxx
+++ b/Source/kwsys/SystemInformation.cxx
@@ -3358,6 +3358,12 @@ bool SystemInformationImplementation::QueryOSInformation()
WSACleanup( );
}
this->Hostname = name;
+
+ const char* arch = getenv("PROCESSOR_ARCHITECTURE");
+ if(arch)
+ {
+ this->OSPlatform = arch;
+ }
#else