From 8fe2738096cc771bfaebe2f5dd51537e1f1c132e Mon Sep 17 00:00:00 2001 From: Zach Mullen Date: Fri, 9 Oct 2009 11:10:06 -0400 Subject: Added OS Platform (cpu architecture) detection support to windows systems --- Source/kwsys/SystemInformation.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12