1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-18 11:19:10 +00:00

Don't use CPUID call on targets that don't support it

This commit is contained in:
2013-03-21 18:51:21 -07:00
parent 42c8235023
commit 8e7505b8ce
3 changed files with 34 additions and 7 deletions

11
cmake/check_cpuid.cpp Normal file
View File

@ -0,0 +1,11 @@
#if defined(_MSC_VER) || ((defined(_WIN32) || defined(_WIN64)) && defined(__INTEL_COMPILER))
# include <intrin.h>
#elif defined(__GNUC__)
# include <cpuid.h>
#endif
/* Just needed to look for the headers -- this just makes the compiler happy. */
int main(int argc, char *argv[])
{
return 0;
}