CodeCommitsIssuesPull requestsActionsInsightsSecurity
d591c7187fe9551d44de76c461acacdf158c2a72

Branches

Tags

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

Clone

HTTPS

Download ZIP

cmake/Modules/Findfarmhash.cmake

44lines · modecode

1# - Try to find farmhash headers and libraries.
2#
3# Usage of this module as follows:
4#
5# find_package(farmhash)
6#
7# Variables used by this module, they can change the default behaviour and need
8# to be set before calling find_package:
9#
10# FARMHASH_ROOT_DIR Set this variable to the root installation of
11# farmhash if the module has problems finding
12# the proper installation path.
13#
14# Variables defined by this module:
15#
16# FARMHASH_FOUND System has farmhash libs/headers
17# FARMHASH_LIBRARIES The farmhash library/libraries
18# FARMHASH_INCLUDE_DIR The location of farmhash headers
19
20find_path(FARMHASH_ROOT_DIR
21 NAMES include/farmhash.h
22)
23
24find_library(FARMHASH_LIBRARIES
25 NAMES farmhash
26 PATHS ${FARMHASH_ROOT_DIR}/lib ${FARMHASH_LIBRARIES_PATHS}
27)
28
29find_path(FARMHASH_INCLUDE_DIR
30 NAMES farmhash.h
31 PATHS ${FARMHASH_ROOT_DIR}/include ${FARMHASH_INCLUDE_PATHS}
32)
33
34include(FindPackageHandleStandardArgs)
35find_package_handle_standard_args(farmhash DEFAULT_MSG
36 FARMHASH_LIBRARIES
37 FARMHASH_INCLUDE_DIR
38)
39
40mark_as_advanced(
41 FARMHASH_ROOT_DIR
42 FARMHASH_LIBRARIES
43 FARMHASH_INCLUDE_DIR
44)