]> git.proxmox.com Git - ceph.git/blame - ceph/cmake/modules/FindJeMalloc.cmake
update sources to v12.1.3
[ceph.git] / ceph / cmake / modules / FindJeMalloc.cmake
CommitLineData
7c673cae
FG
1# Find the native JeMalloc includes and library
2# This module defines
3# JEMALLOC_INCLUDE_DIRS, where to find jemalloc.h, Set when
4# JEMALLOC_INCLUDE_DIR is found.
5# JEMALLOC_LIBRARIES, libraries to link against to use JeMalloc.
6# JEMALLOC_FOUND, If false, do not try to use JeMalloc.
7#
8
9find_path(JEMALLOC_INCLUDE_DIR jemalloc/jemalloc.h)
10
11find_library(JEMALLOC_LIBRARIES jemalloc)
12
13include(FindPackageHandleStandardArgs)
14find_package_handle_standard_args(JeMalloc DEFAULT_MSG
15 JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR)
16
17mark_as_advanced(
18 JEMALLOC_INCLUDE_DIR
19 JEMALLOC_LIBRARIES)
20