mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-06 22:58:35 -06:00
Merge topic 'update-kwsys'
4032968220Merge branch 'upstream-KWSys' into update-kwsys5df527f7afKWSys 2023-05-25 (c9f0da47) Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8504
This commit is contained in:
@@ -3453,6 +3453,10 @@ bool SystemInformationImplementation::RetrieveInformationFromCpuInfoFile()
|
||||
fileSize++;
|
||||
}
|
||||
fclose(fd);
|
||||
if (fileSize < 2) {
|
||||
std::cout << "No data in /proc/cpuinfo" << std::endl;
|
||||
return false;
|
||||
}
|
||||
buffer.resize(fileSize - 2);
|
||||
// Number of logical CPUs (combination of multiple processors, multi-core
|
||||
// and SMT)
|
||||
|
||||
Reference in New Issue
Block a user