-
Notifications
You must be signed in to change notification settings - Fork 283
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,39 @@ | ||
# Find the FUSE includes and library | ||
# | ||
# FUSE_INCLUDE_DIR - where to find fuse.h, etc. | ||
# FUSE_LIBRARIES - List of libraries when using FUSE. | ||
# FUSE_FOUND - True if FUSE lib is found. | ||
# FUSE_INCLUDE_DIR - where to find fuse.h, etc. | ||
# FUSE_LIBRARIES - List of libraries when using FUSE. | ||
# FUSE_ROOT_DIR - Additional search path. | ||
# FUSE_FOUND - True if FUSE lib is found. | ||
|
||
# check if already in cache, be silent | ||
if (FUSE_INCLUDE_DIR) | ||
SET (FUSE_FIND_QUIETLY TRUE) | ||
endif (FUSE_INCLUDE_DIR) | ||
if (FUSE_INCLUDE_DIR AND FUSE_LIBRARIES) | ||
SET (FUSE_FIND_QUIETLY TRUE) | ||
endif () | ||
|
||
if (APPLE) | ||
set (FUSE_NAMES libosxfuse.dylib fuse) | ||
set (FUSE_SUFFIXES osxfuse fuse) | ||
else (APPLE) | ||
else () | ||
set (FUSE_NAMES fuse refuse) | ||
set (FUSE_SUFFIXES fuse refuse) | ||
endif (APPLE) | ||
endif () | ||
|
||
# find includes | ||
find_path (FUSE_INCLUDE_DIR fuse.h | ||
PATHS /opt /opt/local /usr/pkg | ||
PATH_SUFFIXES ${FUSE_SUFFIXES}) | ||
# find include | ||
find_path ( | ||
FUSE_INCLUDE_DIR fuse.h | ||
PATHS /opt /opt/local /usr /usr/local /usr/pkg ${FUSE_ROOT_DIR} ENV FUSE_ROOT_DIR | ||
PATH_SUFFIXES include ${FUSE_SUFFIXES}) | ||
|
||
# find lib | ||
find_library (FUSE_LIBRARIES NAMES ${FUSE_NAMES}) | ||
find_library ( | ||
FUSE_LIBRARIES | ||
NAMES ${FUSE_NAMES} | ||
PATHS /opt /opt/local /usr /usr/local /usr/pkg ${FUSE_ROOT_DIR} ENV FUSE_ROOT_DIR | ||
PATH_SUFFIXES lib) | ||
|
||
include ("FindPackageHandleStandardArgs") | ||
find_package_handle_standard_args ("FUSE" DEFAULT_MSG | ||
find_package_handle_standard_args ( | ||
"FUSE" DEFAULT_MSG | ||
FUSE_INCLUDE_DIR FUSE_LIBRARIES) | ||
|
||
mark_as_advanced (FUSE_INCLUDE_DIR FUSE_LIBRARIES) | ||
|