CMake on WinXP/SP2: Entry Point Not Found
Just downloaded and ran cmake-3.8.0-rc3-win32-x86.msi. It installed OK, but when I run cmake or cmake-gui I get this error dialog:
cmake.exe - Entry Point Not Found
The procedure entry point GetLogicalProcessorInformation could not be located
in the dynamic link library KERNEL32.dll.
An older version of cmake (2.6.4) seems to run OK on this same machine/DOS window, so I'm using that for now (though I'm having trouble using that because it's generating .sln files that VS .Net can't load, so trying the latest to work around that, but that's a separate issue)
Can this perhaps be solved at runtime by checking if the "GetLogicalProcessorInformation" function is available in KERNEL32.dll before trying to call it, by checking the function pointer it returns for being NULL? e.g.
fptr = GetProcAddress(GetModuleHandle("kernel32"), "GetLogicalProcessorInformation");
if ( fptr != NULL ) {
// use the function
(*fptr)(..);
} else {
// don't use the function
}