From 6b870714a91c9607acc4501234a00c7c94fa2b85 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 7 Oct 2012 05:36:25 -0700 Subject: Use __cpuid from intrin.h in Windows when available --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f8ba10e2..04d8f9c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,6 +191,8 @@ IF(WIN32) MESSAGE(STATUS "Could not find Wine header files" ) ENDIF() ENDIF() + + CHECK_INCLUDE_FILE(intrin.h HAVE_INTRIN_H) ELSE() SET(OLD_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") # Yes GCC, really don't accept visibility modes you don't support @@ -278,6 +280,9 @@ IF(HAVE_FLOAT_H) CHECK_SYMBOL_EXISTS(_controlfp float.h HAVE__CONTROLFP) CHECK_SYMBOL_EXISTS(__control87_2 float.h HAVE___CONTROL87_2) ENDIF() +IF(HAVE_INTRIN_H) + CHECK_SYMBOL_EXISTS(__cpuid intrin.h HAVE___CPUID) +ENDIF() CHECK_FUNCTION_EXISTS(strtof HAVE_STRTOF) CHECK_FUNCTION_EXISTS(stat HAVE_STAT) -- cgit v1.2.3