mirror of
https://github.com/ceph/ceph
synced 2024-12-11 05:57:05 +00:00
4acd2cef35
The cmake package names of libraries are case-sensitive. The name used in FIND_PACKAGE_HANDLE_STANDARD_ARGS - e.g. "cryptopp" - must match the name used in the module name - "Findcryptopp.cmake" - as well as the name used in find_package() call - "find_package(cryptopp REQUIRED)" Note that the term "package" here refers to a cmake abstraction, *not* an actual RPM or Debian package. Fixes: http://tracker.ceph.com/issues/19853 Signed-off-by: Nathan Cutler <ncutler@suse.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)
|