mirror of
https://github.com/ceph/ceph
synced 2024-12-13 23:17:07 +00:00
8bf5cd1606
* remove unused stuff, we do not pass/use FUSE_VERSION in cmake. the FUSE_VERSION we are using is defined by "fuse_common.h". * use FindPackageHandleStandardArgs for handling find_package() arguments. * also detect osxfuse on MacOS. Signed-off-by: Kefu Chai <kchai@redhat.com>
29 lines
726 B
CMake
29 lines
726 B
CMake
# This module can find FUSE Library
|
|
#
|
|
# The following variables will be defined for your use:
|
|
# - FUSE_FOUND : was FUSE found?
|
|
# - FUSE_INCLUDE_DIRS : FUSE include directory
|
|
# - FUSE_LIBRARIES : FUSE library
|
|
|
|
find_path(
|
|
FUSE_INCLUDE_DIRS
|
|
NAMES fuse_common.h fuse_lowlevel.h fuse.h
|
|
PATHS /usr/local/include/osxfuse /usr/local/include
|
|
PATH_SUFFIXES fuse)
|
|
|
|
set(fuse_names fuse)
|
|
if(APPLE)
|
|
list(APPEND fuse_names libosxfuse.dylib)
|
|
endif()
|
|
|
|
find_library(FUSE_LIBRARIES
|
|
NAMES ${fuse_names}
|
|
PATHS /usr/local/lib64 /usr/local/lib)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(FUSE DEFAULT_MSG
|
|
FUSE_INCLUDE_DIRS FUSE_LIBRARIES)
|
|
|
|
mark_as_advanced(
|
|
FUSE_INCLUDE_DIRS FUSE_LIBRARIES)
|