From 827e6119114f8e9d31af31a2501ffe67a97b478f Mon Sep 17 00:00:00 2001 From: XMRig Date: Tue, 13 Jun 2017 11:17:40 +0300 Subject: [PATCH] Fix libcpuid support for MSVC. --- src/3rdparty/libcpuid/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/3rdparty/libcpuid/CMakeLists.txt b/src/3rdparty/libcpuid/CMakeLists.txt index ef541cc30..51eab1d36 100644 --- a/src/3rdparty/libcpuid/CMakeLists.txt +++ b/src/3rdparty/libcpuid/CMakeLists.txt @@ -26,7 +26,13 @@ set(SOURCES libcpuid_util.c ) +if (CMAKE_CL_64) + enable_language(ASM_MASM) + set(SOURCES_ASM masm-x64.asm) +endif() + add_library(cpuid STATIC ${HEADERS} ${SOURCES} + ${SOURCES_ASM} )