From 3ea089f30ecb5c6e206474e11c9fe34bc4748490 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 19 Dec 2018 13:41:30 +0100 Subject: cmake/platform: detect Intel arch (ia32/amd64) --- cmake/opentrack-platform.cmake | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cmake/opentrack-platform.cmake') 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") -- cgit v1.2.3