CodeCommitsIssuesPull requestsActionsInsightsSecurity
0318e6d8201ea85462d5e7fa4fe14c4ee89cd055

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

cmake/find/consistent-hashing.cmake

14lines · modecode

1option (USE_INTERNAL_CONSISTENT_HASHING_LIBRARY "Set to FALSE to use consistent-hashing library from Arcadia (Yandex internal repository) instead of bundled" ${NOT_UNBUNDLED})
2
3if (NOT USE_INTERNAL_CONSISTENT_HASHING_LIBRARY)
4 find_library (CONSISTENT_HASHING_LIBRARY consistent-hashing)
5 find_path (CONSISTENT_HASHING_INCLUDE_DIR NAMES consistent_hashing.h PATHS ${CONSISTENT_HASHING_INCLUDE_PATHS})
6endif ()
7
8if (CONSISTENT_HASHING_LIBRARY AND CONSISTENT_HASHING_INCLUDE_DIR)
9else ()
10 set (USE_INTERNAL_CONSISTENT_HASHING_LIBRARY 1)
11 set (CONSISTENT_HASHING_LIBRARY consistent-hashing)
12endif ()
13
14message (STATUS "Using consistent-hashing: ${CONSISTENT_HASHING_INCLUDE_DIR} : ${CONSISTENT_HASHING_LIBRARY}")