2018-02-26 18:34:22 +00:00
|
|
|
if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
|
|
|
|
set (ARCH_AARCH64 1)
|
|
|
|
endif ()
|
|
|
|
if (ARCH_AARCH64 OR CMAKE_SYSTEM_PROCESSOR MATCHES "arm")
|
|
|
|
set (ARCH_ARM 1)
|
|
|
|
endif ()
|
|
|
|
if (CMAKE_LIBRARY_ARCHITECTURE MATCHES "i386")
|
|
|
|
set (ARCH_I386 1)
|
|
|
|
endif ()
|
2018-08-19 03:25:38 +00:00
|
|
|
if ((ARCH_ARM AND NOT ARCH_AARCH64) OR ARCH_I386)
|
2018-02-26 18:34:22 +00:00
|
|
|
set (ARCH_32 1)
|
2018-08-19 03:25:38 +00:00
|
|
|
message (FATAL_ERROR "32bit platforms are not supported")
|
2018-02-26 18:34:22 +00:00
|
|
|
endif ()
|
2018-08-03 21:04:19 +00:00
|
|
|
|
2018-02-26 18:34:22 +00:00
|
|
|
if (CMAKE_SYSTEM MATCHES "Linux")
|
2018-08-05 08:54:57 +00:00
|
|
|
set (OS_LINUX 1)
|
2018-02-26 18:34:22 +00:00
|
|
|
endif ()
|
|
|
|
if (CMAKE_SYSTEM MATCHES "FreeBSD")
|
2018-08-05 08:54:57 +00:00
|
|
|
set (OS_FREEBSD 1)
|
2018-02-26 18:34:22 +00:00
|
|
|
endif ()
|
2018-03-02 00:17:25 +00:00
|
|
|
|
|
|
|
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
|
|
|
set (COMPILER_GCC 1)
|
|
|
|
elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
|
|
|
set (COMPILER_CLANG 1)
|
|
|
|
endif ()
|