From 5cb620108a6843d44e0a65daac93f2d55ab1eb64 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Dec 2018 17:32:49 +0100 Subject: cmake: fix Intel detection on win32 --- cmake/opentrack-platform.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmake') diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index adfe58cc..1dd9c3cb 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -77,6 +77,8 @@ if(APPLE AND NOT CMAKE_OSX_ARCHITECTURES) set(opentrack-intel TRUE) elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*|i[0-9]86.*|x86.*") set(opentrack-intel TRUE) +elseif(MSVC AND CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_SYSTEM_PROCESSOR STREQUAL "") + set(opentrack-intel TRUE) else() set(opentrack-intel FALSE) endif() -- cgit v1.2.3