Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / cmake / modules / FindJeMalloc.cmake
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
9 find_path(JEMALLOC_INCLUDE_DIR jemalloc/jemalloc.h)
10
11 find_library(JEMALLOC_LIBRARIES jemalloc)
12
13 include(FindPackageHandleStandardArgs)
14 find_package_handle_standard_args(JeMalloc DEFAULT_MSG
15     JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR)
16
17 mark_as_advanced(
18   JEMALLOC_INCLUDE_DIR
19   JEMALLOC_LIBRARIES)
20