Cmake: find_unwind: Fix disable on arm

This commit is contained in:
proller 2017-08-16 21:06:40 +03:00
parent 731b4b4728
commit 0490a268f7

View File

@ -1,7 +1,7 @@
include (CMakePushCheckState)
cmake_push_check_state ()
if (CMAKE_SYSTEM MATCHES "Linux" AND NOT ARM)
if (CMAKE_SYSTEM MATCHES "Linux" AND NOT ARCH_ARM)
option (USE_INTERNAL_UNWIND_LIBRARY "Set to FALSE to use system unwind library instead of bundled" ${NOT_UNBUNDLED})
else ()
option (USE_INTERNAL_UNWIND_LIBRARY "Set to FALSE to use system unwind library instead of bundled" OFF)
@ -34,7 +34,7 @@ endif ()
if (UNWIND_LIBRARY AND UNWIND_INCLUDE_DIR)
set (USE_UNWIND 1)
elseif (CMAKE_SYSTEM MATCHES "Linux" AND NOT ARM)
elseif (CMAKE_SYSTEM MATCHES "Linux" AND NOT ARCH_ARM)
set (USE_INTERNAL_UNWIND_LIBRARY 1)
set (UNWIND_INCLUDE_DIR "${ClickHouse_SOURCE_DIR}/contrib/libunwind/include")
set (UNWIND_LIBRARY unwind)