Merge pull request #15180 from velconia/add_pyramid_dnn_support
Add JeMallocrevert-15207-remove_op_handle_lock_and_fix_var
commit
1df2399e00
@ -0,0 +1,21 @@
|
|||||||
|
# - Find JeMalloc library
|
||||||
|
# Find the native JeMalloc includes and library
|
||||||
|
#
|
||||||
|
# JEMALLOC_INCLUDE_DIR - where to find jemalloc.h, etc.
|
||||||
|
# JEMALLOC_LIBRARIES - List of libraries when using jemalloc.
|
||||||
|
# JEMALLOC_FOUND - True if jemalloc found.
|
||||||
|
|
||||||
|
find_path(JEMALLOC_INCLUDE_DIR
|
||||||
|
NAMES jemalloc/jemalloc.h
|
||||||
|
HINTS ${JEMALLOC_ROOT_DIR}/include)
|
||||||
|
|
||||||
|
find_library(JEMALLOC_LIBRARIES
|
||||||
|
NAMES jemalloc
|
||||||
|
HINTS ${JEMALLOC_ROOT_DIR}/lib)
|
||||||
|
|
||||||
|
include(FindPackageHandleStandardArgs)
|
||||||
|
find_package_handle_standard_args(jemalloc DEFAULT_MSG JEMALLOC_LIBRARIES JEMALLOC_INCLUDE_DIR)
|
||||||
|
|
||||||
|
mark_as_advanced(
|
||||||
|
JEMALLOC_LIBRARIES
|
||||||
|
JEMALLOC_INCLUDE_DIR)
|
Loading…
Reference in new issue