2016-09-28 20:53:15 +02:00
|
|
|
# - Find JeMalloc library
|
|
|
|
# Find the native JeMalloc includes and library
|
|
|
|
#
|
2017-04-06 22:54:49 +02:00
|
|
|
# JEMALLOC_INCLUDE_DIR - where to find jemalloc.h, etc.
|
|
|
|
# JEMALLOC_LIBRARIES - List of libraries when using jemalloc.
|
|
|
|
# JEMALLOC_FOUND - True if jemalloc found.
|
|
|
|
|
2016-09-28 20:53:15 +02:00
|
|
|
find_path(JEMALLOC_INCLUDE_DIR
|
2017-04-06 22:54:49 +02:00
|
|
|
NAMES jemalloc/jemalloc.h
|
|
|
|
HINTS ${JEMALLOC_ROOT_DIR}/include)
|
2016-09-28 20:53:15 +02:00
|
|
|
|
|
|
|
find_library(JEMALLOC_LIBRARIES
|
2017-04-06 22:54:49 +02:00
|
|
|
NAMES jemalloc
|
|
|
|
HINTS ${JEMALLOC_ROOT_DIR}/lib)
|
2016-09-28 20:53:15 +02:00
|
|
|
|
|
|
|
include(FindPackageHandleStandardArgs)
|
2017-04-06 22:54:49 +02:00
|
|
|
find_package_handle_standard_args(jemalloc DEFAULT_MSG JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR)
|
2016-09-28 20:53:15 +02:00
|
|
|
|
2017-04-06 22:54:49 +02:00
|
|
|
mark_as_advanced(
|
2016-09-28 20:53:15 +02:00
|
|
|
JEMALLOC_LIBRARIES
|
2017-04-06 22:54:49 +02:00
|
|
|
JEMALLOC_INCLUDE_DIR)
|