summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-26 17:32:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-26 17:45:01 +0100
commit5cb620108a6843d44e0a65daac93f2d55ab1eb64 (patch)
treebe8b1dd48e0196ae98e73070584fafca976df7d7 /cmake
parent51250d659681868b8adacd300099a82c0368f7f9 (diff)
cmake: fix Intel detection on win32
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake2
1 files changed, 2 insertions, 0 deletions
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()