[Cmake-commits] [cmake-commits] david.cole committed SystemInformation.cxx 1.53 1.54
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Dec 11 13:08:34 EST 2009
Update of /cvsroot/CMake/CMake/Source/kwsys
In directory public:/mounts/ram/cvs-serv782
Modified Files:
SystemInformation.cxx
Log Message:
Add fallback for detecting CPU speed from Windows registry on builds where USE_ASM_INSTRUCTIONS gets defined to 0. (Win64 builds.) Clean up methods to return false when not implemented or when they fail to detect the things they're supposed to detect. This file still needs a lot more work to have a fully working implementation on Win64 builds. Committing it now because it's slightly better than it was, and there is a need for the CPU speed detection code in projects that depend on kwsys. Will file a bug shortly to request that the missing implementations get filled in...
Index: SystemInformation.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/kwsys/SystemInformation.cxx,v
retrieving revision 1.53
retrieving revision 1.54
diff -C 2 -d -r1.53 -r1.54
*** SystemInformation.cxx 18 Nov 2009 16:22:38 -0000 1.53
--- SystemInformation.cxx 11 Dec 2009 18:08:29 -0000 1.54
***************
*** 14,17 ****
--- 14,29 ----
#endif
+ // TODO:
+ // We need an alternative implementation for many functions in this file
+ // when USE_ASM_INSTRUCTIONS gets defined as 0.
+ //
+ // Consider using these on Win32/Win64 for some of them:
+ //
+ // IsProcessorFeaturePresent
[...1120 lines suppressed...]
}
+
void SystemInformationImplementation::TrimNewline(kwsys_stl::string& output)
{
***************
*** 3441,3444 ****
--- 3580,3584 ----
}
+
/** Return true if the machine is 64 bits */
bool SystemInformationImplementation::Is64Bits()
***************
*** 3447,3449 ****
--- 3587,3590 ----
}
+
} // namespace @KWSYS_NAMESPACE@
More information about the Cmake-commits
mailing list