mirror of
https://github.com/ceph/ceph
synced 2024-12-18 01:16: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>
46 lines
1.3 KiB
CMake
46 lines
1.3 KiB
CMake
# - Find AIO
|
|
#
|
|
# AIO_INCLUDE - Where to find AIO/aio.h
|
|
# AIO_LIBS - List of libraries when using AIO.
|
|
# AIO_FOUND - True if AIO found.
|
|
|
|
get_filename_component(module_file_path ${CMAKE_CURRENT_LIST_FILE} PATH)
|
|
|
|
# Look for the header file.
|
|
find_path(AIO_INCLUDE
|
|
NAMES aio.h
|
|
PATHS /usr/include $ENV{AIO_ROOT}/include /opt/local/include /usr/local/include
|
|
DOC "Path in which the file AIO/aio.h is located." )
|
|
|
|
mark_as_advanced(AIO_INCLUDE)
|
|
|
|
# Look for the library.
|
|
# Does this work on UNIX systems? (LINUX)
|
|
find_library(AIO_LIBS
|
|
NAMES aio
|
|
PATHS /usr/lib /usr/lib/x86_64-linux-gnu $ENV{AIO_ROOT}/lib
|
|
DOC "Path to AIO library.")
|
|
|
|
mark_as_advanced(AIO_LIBS)
|
|
|
|
# Copy the results to the output variables.
|
|
if (AIO_INCLUDE AND AIO_LIBS)
|
|
message(STATUS "Found AIO in ${AIO_INCLUDE} ${AIO_LIBS}")
|
|
set(AIO_FOUND 1)
|
|
include(CheckCXXSourceCompiles)
|
|
set(CMAKE_REQUIRED_LIBRARY ${AIO_LIBS} pthread)
|
|
set(CMAKE_REQUIRED_INCLUDES ${AIO_INCLUDE})
|
|
else ()
|
|
set(AIO_FOUND 0)
|
|
endif ()
|
|
|
|
# Report the results.
|
|
if (NOT AIO_FOUND)
|
|
set(AIO_DIR_MESSAGE "AIO was not found. Make sure AIO_LIBS and AIO_INCLUDE are set.")
|
|
if (AIO_FIND_REQUIRED)
|
|
message(FATAL_ERROR "${AIO_DIR_MESSAGE}")
|
|
elseif (NOT AIO_FIND_QUIETLY)
|
|
message(STATUS "${AIO_DIR_MESSAGE}")
|
|
endif ()
|
|
endif ()
|