-
Notifications
You must be signed in to change notification settings - Fork 322
Expand file tree
/
Copy pathcachelib-config.cmake.in
More file actions
53 lines (45 loc) · 1.71 KB
/
Copy pathcachelib-config.cmake.in
File metadata and controls
53 lines (45 loc) · 1.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# CMake package configuration file for cachelib
#
# Defines the target "cachelib"
# Add this to your target_link_libraries() call to depend on cachelib.
#
# Also sets the variables CACHELIB_INCLUDE_DIR and CACHELIB_LIBRARIES.
# However, in most cases using the cachelib::cachelib target is sufficient,
# and you won't need these variables.
#
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
set_and_check(CACHELIB_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
set_and_check(CACHELIB_CMAKE_DIR "@PACKAGE_CMAKE_INSTALL_DIR@")
find_dependency(Gflags)
find_dependency(folly )
find_dependency(fizz )
find_dependency(wangle)
find_dependency(FBThrift)
# When cachelib was built with DSA checksum offload, cachelib_navy links the
# DTO runtime; resolve its imported target for consumers. A DTO fetched and
# built in-tree installs its package into this same prefix.
if (@BUILD_WITH_DTO@)
find_dependency(DTO CONFIG)
endif()
if (NOT TARGET cachelib)
include("${CACHELIB_CMAKE_DIR}/cachelib-targets.cmake")
endif()
set(CACHELIB_LIBRARIES cachelib)
if (NOT cachelib_FIND_QUIETLY)
message(STATUS "Found cachelib: ${PACKAGE_PREFIX_DIR}")
endif()