[CMake] Question about running C code from within cmake
Steven Truppe
workbench at gmx.at
Sun Jun 2 08:16:53 EDT 2019
Hi everyone,
i'm trying to search for a way for win32 to get the cpu core count. i
found the c code:
|SYSTEM_INFO sysinfo;GetSystemInfo(&sysinfo);intnumCPU
=sysinfo.dwNumberOfProcessors; Is there a way i can get the return value
numCPU and create a variable out of it ? for apple and linux i allready
have a solution only win32 is left. best regards! |
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190602/1ca37a93/attachment.html>
More information about the CMake
mailing list