ClickHouse/cmake/find_fastops.cmake

18 lines
699 B
CMake
Raw Normal View History

2019-08-04 12:37:59 +00:00
if (NOT ARCH_ARM AND NOT OS_FREEBSD)
2019-08-09 22:21:54 +00:00
option (ENABLE_FASTOPS "Enable fast vectorized mathematical functions library by Mikhail Parakhin" ${NOT_UNBUNDLED})
2019-08-04 12:37:59 +00:00
endif ()
2019-08-01 00:29:32 +00:00
if (ENABLE_FASTOPS)
if(NOT EXISTS "${ClickHouse_SOURCE_DIR}/contrib/fastops/fastops/fastops.h")
2019-08-01 00:45:36 +00:00
message(FATAL_ERROR "submodule contrib/fastops is missing. to fix try run: \n git submodule update --init --recursive")
2019-08-01 00:29:32 +00:00
set(USE_FASTOPS 0)
endif()
set (USE_FASTOPS 1)
set (FASTOPS_INCLUDE_DIR ${ClickHouse_SOURCE_DIR}/contrib/fastops/)
set (FASTOPS_LIBRARY fastops)
else ()
set(USE_FASTOPS 0)
endif ()
2019-08-05 10:52:41 +00:00
message (STATUS "Using fastops=${USE_FASTOPS}: ${FASTOPS_INCLUDE_DIR} : ${FASTOPS_LIBRARY}")