diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-05-19 20:46:24 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-05-19 20:46:24 (GMT) |
commit | 4220e7c62c52631cf44e3669263e3c9bd7fc2f21 (patch) | |
tree | b72be424d8e22a375f0ebeca36f0af83f4cf7c57 /Source/kwsys/SystemInformation.cxx | |
parent | ee3d395fdeff34fec58c155cfd2cb5a3c1a843d9 (diff) | |
download | CMake-4220e7c62c52631cf44e3669263e3c9bd7fc2f21.zip CMake-4220e7c62c52631cf44e3669263e3c9bd7fc2f21.tar.gz CMake-4220e7c62c52631cf44e3669263e3c9bd7fc2f21.tar.bz2 |
ENH: make this build on other machines besides the mac
Diffstat (limited to 'Source/kwsys/SystemInformation.cxx')
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 06e9183..a32148a 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -2768,6 +2768,7 @@ unsigned int SystemInformationImplementation::GetNumberOfPhysicalCPU() /** For Mac use sysctlbyname calls to find system info */ bool SystemInformationImplementation::ParseSysCtl() { +#if defined(__APPLE__) int err = 0; uint64_t value = 0; size_t len = sizeof(value); @@ -2866,6 +2867,9 @@ bool SystemInformationImplementation::ParseSysCtl() this->Features.L2CacheSize = value; return true; +#else + return false; +#endif } /** Extract a value from sysctl command */ |