2017-03-14 16:52:33 +00:00
|
|
|
|
|
|
|
option (ENABLE_VECTORCLASS "Faster math functions with vectorclass lib" OFF)
|
|
|
|
|
|
|
|
if (ENABLE_VECTORCLASS)
|
|
|
|
|
2017-08-03 12:44:39 +00:00
|
|
|
set (VECTORCLASS_INCLUDE_PATHS "${ClickHouse_SOURCE_DIR}/contrib/vectorclass" CACHE STRING "Path of vectorclass library")
|
|
|
|
find_path (VECTORCLASS_INCLUDE_DIR NAMES vectorf128.h PATHS ${VECTORCLASS_INCLUDE_PATHS})
|
2017-03-14 16:52:33 +00:00
|
|
|
|
2017-08-03 12:44:39 +00:00
|
|
|
if (VECTORCLASS_INCLUDE_DIR)
|
|
|
|
set (USE_VECTORCLASS 1)
|
|
|
|
endif ()
|
2017-03-14 16:52:33 +00:00
|
|
|
|
2017-08-03 12:44:39 +00:00
|
|
|
message (STATUS "Using vectorclass=${USE_VECTORCLASS}: ${VECTORCLASS_INCLUDE_DIR}")
|
2017-03-14 16:52:33 +00:00
|
|
|
|
|
|
|
endif ()
|