From 4d517922856791decfed475cdd536aedcaa25c30 Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 21 Jul 2015 19:49:33 -0400 Subject: Common: Ported over Dolphin's code for x86 CPU capability detection. --- src/common/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/CMakeLists.txt') diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 4c086cd2f..cef5081c5 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -56,6 +56,14 @@ set(HEADERS vector_math.h ) +if(_M_X86) + set(SRCS ${SRCS} + cpu_detect_x86.cpp) +else() + set(SRCS ${SRCS} + cpu_detect_generic.cpp) +endif() + create_directory_groups(${SRCS} ${HEADERS}) add_library(common STATIC ${SRCS} ${HEADERS}) -- cgit v1.2.3