mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 13:20:47 -06:00
Added OS Platform (cpu architecture) detection support to windows systems
This commit is contained in:
@@ -3358,6 +3358,12 @@ bool SystemInformationImplementation::QueryOSInformation()
|
||||
WSACleanup( );
|
||||
}
|
||||
this->Hostname = name;
|
||||
|
||||
const char* arch = getenv("PROCESSOR_ARCHITECTURE");
|
||||
if(arch)
|
||||
{
|
||||
this->OSPlatform = arch;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
|
||||
Reference in New Issue
Block a user