summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-12-19 13:41:30 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-12-19 14:15:32 +0100
commit3ea089f30ecb5c6e206474e11c9fe34bc4748490 (patch)
tree3212e596b9801c71dff666035a6c22284d12f28c /cmake
parentd22e2a3bddbf4ab0b1a5a7d9bf08fac25368ed0d (diff)
cmake/platform: detect Intel arch (ia32/amd64)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-platform.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake
index a72c4918..8cc7d346 100644
--- a/cmake/opentrack-platform.cmake
+++ b/cmake/opentrack-platform.cmake
@@ -33,6 +33,12 @@ endif()
string(TOUPPER "${CMAKE_BUILD_TYPE}" __build_type)
set(CMAKE_BUILD_TYPE "${__build_type}" CACHE STRING "" FORCE)
+if (CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*|i[0-9]86.*|x86.*")
+ set(opentrack-intel TRUE)
+else()
+ set(opentrack-intel FALSE)
+endif()
+
if(APPLE)
if(NOT CMAKE_OSX_ARCHITECTURES)
set(CMAKE_OSX_ARCHITECTURES "x86_64")