aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2012-10-07 05:36:25 -0700
committerChris Robinson <[email protected]>2012-10-07 05:36:25 -0700
commit6b870714a91c9607acc4501234a00c7c94fa2b85 (patch)
tree04d0ae8cf35cb357a21a63bba7d420e3dee794be /CMakeLists.txt
parent708f3ccc3d457499ac046a009a7c3317b31a2b4b (diff)
Use __cpuid from intrin.h in Windows when available
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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)