mirror of
https://github.com/ceph/ceph
synced 2024-12-27 05:53:20 +00:00
0f6b9f2816
CMake Ceph Build System (Firefly) CMake. Add tests. Respace src/CMakeLists.txt. CMake. Spacing cleanups. CMake for Firefly is Triumphant CMake for Giant Adapt to Giant. Fix installation for scripts and man pages Fix CEPH_LIBDIR and CEPH_PKGLIBDIR defines Add erasure-code libraries uses try_compile() to detect support for -msse flags Fix rados object classes Propagate Casey's cls library change to src/test. Fix CMake build for Hammer. Try-add rados and common to librbd link. Fix name and linkage of libec_lrc. Rename arch/neon.c arm.c Fix libcommon.a dependencies (some unit tests). Authors: Ali Maredia <ali@cohortfs.com> Casey Bodley <casey@cohortfs.com> Adam Emerson <aemerson@cohortfs.com> Marcus Watts <mdw@cohortfs.com> Matt Benjamin <matt@cohortfs.com> Signed-off-by: Matt Benjamin <matt@cohortfs.com>
48 lines
1.2 KiB
CMake
48 lines
1.2 KiB
CMake
# - Find Tcmalloc
|
|
# Find the native Tcmalloc includes and library
|
|
#
|
|
# Tcmalloc_INCLUDE_DIR - where to find Tcmalloc.h, etc.
|
|
# Tcmalloc_LIBRARIES - List of libraries when using Tcmalloc.
|
|
# Tcmalloc_FOUND - True if Tcmalloc found.
|
|
|
|
find_path(Tcmalloc_INCLUDE_DIR google/tcmalloc.h NO_DEFAULT_PATH PATHS
|
|
${HT_DEPENDENCY_INCLUDE_DIR}
|
|
/usr/include
|
|
/opt/local/include
|
|
/usr/local/include
|
|
)
|
|
|
|
if (USE_TCMALLOC)
|
|
set(Tcmalloc_NAMES tcmalloc)
|
|
else ()
|
|
set(Tcmalloc_NAMES tcmalloc_minimal tcmalloc)
|
|
endif ()
|
|
|
|
find_library(Tcmalloc_LIBRARY NO_DEFAULT_PATH
|
|
NAMES ${Tcmalloc_NAMES}
|
|
PATHS ${HT_DEPENDENCY_LIB_DIR} /lib /usr/lib /usr/local/lib /opt/local/lib
|
|
)
|
|
|
|
if (Tcmalloc_INCLUDE_DIR AND Tcmalloc_LIBRARY)
|
|
set(Tcmalloc_FOUND TRUE)
|
|
set( Tcmalloc_LIBRARIES ${Tcmalloc_LIBRARY} )
|
|
else ()
|
|
set(Tcmalloc_FOUND FALSE)
|
|
set( Tcmalloc_LIBRARIES )
|
|
endif ()
|
|
|
|
if (Tcmalloc_FOUND)
|
|
message(STATUS "Found Tcmalloc: ${Tcmalloc_LIBRARY}")
|
|
else ()
|
|
message(STATUS "Not Found Tcmalloc: ${Tcmalloc_LIBRARY}")
|
|
if (Tcmalloc_FIND_REQUIRED)
|
|
message(STATUS "Looked for Tcmalloc libraries named ${Tcmalloc_NAMES}.")
|
|
message(FATAL_ERROR "Could NOT find Tcmalloc library")
|
|
endif ()
|
|
endif ()
|
|
|
|
mark_as_advanced(
|
|
Tcmalloc_LIBRARY
|
|
Tcmalloc_INCLUDE_DIR
|
|
)
|