mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
add missing file
This commit is contained in:
parent
a08714105b
commit
8ea8b8a215
16
dbms/cmake/find_vectorclass.cmake
Normal file
16
dbms/cmake/find_vectorclass.cmake
Normal file
@ -0,0 +1,16 @@
|
||||
|
||||
option (ENABLE_VECTORCLASS "Faster math functions with vectorclass lib" OFF)
|
||||
|
||||
if (ENABLE_VECTORCLASS)
|
||||
|
||||
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})
|
||||
|
||||
if (VECTORCLASS_INCLUDE_DIR)
|
||||
set (USE_VECTORCLASS 1)
|
||||
include_directories (BEFORE ${VECTORCLASS_INCLUDE_DIR})
|
||||
endif ()
|
||||
|
||||
message (STATUS "Using vectorclass=${ENABLE_VECTORCLASS}: ${VECTORCLASS_INCLUDE_DIR}")
|
||||
|
||||
endif ()
|
Loading…
Reference in New Issue
Block a user