mirror of
https://github.com/ceph/ceph
synced 2024-12-22 11:31:55 +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>
44 lines
1.2 KiB
CMake
44 lines
1.2 KiB
CMake
# - Find libxio
|
|
# Find libxio transport library
|
|
#
|
|
# Xio_INCLUDE_DIR - libxio include dir
|
|
# Xio_LIBRARIES - List of libraries
|
|
# Xio_FOUND - True if libxio found.
|
|
|
|
set(_xio_include_path ${HT_DEPENDENCY_INCLUDE_DIR})
|
|
set(_xio_lib_path ${HT_DEPENDENCY_LIB_DIR})
|
|
if (EXISTS ${WITH_XIO})
|
|
list(APPEND _xio_include_path "${WITH_XIO}/include")
|
|
list(APPEND _xio_lib_path "${WITH_XIO}/lib")
|
|
else()
|
|
list(APPEND _xio_include_path /usr/include /usr/local/include /opt/accelio/include)
|
|
list(APPEND _xio_lib_path /lib /usr/lib /usr/local/lib /opt/accelio/lib)
|
|
endif()
|
|
|
|
find_path(Xio_INCLUDE_DIR libxio.h NO_DEFAULT_PATH PATHS ${_xio_include_path})
|
|
|
|
find_library(Xio_LIBRARY NO_DEFAULT_PATH NAMES xio PATHS ${_xio_lib_path})
|
|
|
|
if (Xio_INCLUDE_DIR AND Xio_LIBRARY)
|
|
set(Xio_FOUND TRUE)
|
|
set(Xio_LIBRARIES ${Xio_LIBRARY} )
|
|
else ()
|
|
set(Xio_FOUND FALSE)
|
|
set(Xio_LIBRARIES )
|
|
endif ()
|
|
|
|
if (Xio_FOUND)
|
|
message(STATUS "Found Xio: ${Xio_INCLUDE_DIR} ${Xio_LIBRARY}")
|
|
else ()
|
|
message(STATUS "Not Found Xio: ${Xio_INCLUDE_DIR} ${Xio_LIBRARY}")
|
|
if (Xio_FIND_REQUIRED)
|
|
message(STATUS "Looked for Xio libraries named ${Xio_NAMES}.")
|
|
message(FATAL_ERROR "Could NOT find Xio library")
|
|
endif ()
|
|
endif ()
|
|
|
|
mark_as_advanced(
|
|
Xio_LIBRARY
|
|
Xio_INCLUDE_DIR
|
|
)
|