mirror of
https://github.com/ceph/ceph
synced 2024-12-24 12:24:19 +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>
38 lines
671 B
CMake
38 lines
671 B
CMake
# - Find cds
|
|
#
|
|
# CDS_INCLUDE_DIR - where to find cds/init.h
|
|
# FIO_FOUND - True if found.
|
|
|
|
find_path(CDS_INC_DIR cds/init.h NO_DEFAULT_PATH PATHS
|
|
/usr/include
|
|
/opt/local/include
|
|
/usr/local/include
|
|
/opt/cds
|
|
)
|
|
|
|
if (CDS_INC_DIR)
|
|
set(CDS_FOUND TRUE)
|
|
else ()
|
|
set(CDS_FOUND FALSE)
|
|
endif ()
|
|
|
|
if (CDS_FOUND)
|
|
message(STATUS "Found cds: ${CDS_INC_DIR}")
|
|
else ()
|
|
message(STATUS "Failed to find cds/init.h")
|
|
if (CDS_FIND_REQUIRED)
|
|
message(FATAL_ERROR "Missing required cds/init.h")
|
|
endif ()
|
|
endif ()
|
|
|
|
find_library(CDS_LIBS
|
|
NAMES cds
|
|
PATHS /usr/lib /usr/lib/x86_64-linux-gnu /opt/cds/bin/gcc-amd64-linux-64
|
|
)
|
|
|
|
mark_as_advanced(
|
|
CDS_INC_DIR
|
|
CDS_LIBS
|
|
)
|
|
|