diff options
author | Brian Kendall <brian@briankendall.net> | 2022-03-31 16:51:02 -0400 |
---|---|---|
committer | Brian Kendall <brian@briankendall.net> | 2022-03-31 16:51:02 -0400 |
commit | 2754062d8c76eedcebd92f468ff1a9bf8cfe2297 (patch) | |
tree | ff988199502131507919e6e77c42256b3219bb66 | |
parent | b4a33dbf6555e5705cc317d90edf0f1eb4c79b51 (diff) | |
download | unionfs-fuse-git-2754062d8c76eedcebd92f468ff1a9bf8cfe2297.tar.gz |
Fix fuse library not found in macOS
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4726324..b513a0f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,6 +31,12 @@ ELSE (WITH_XATTR) add_definitions(-DDISABLE_XATTR) ENDIF (WITH_XATTR) +if (UNIX AND APPLE) + find_library(MACFUSE_PATH fuse HINTS /usr/local/lib) + get_filename_component(MACFUSE_DIRECTORY ${MACFUSE_PATH} DIRECTORY) + link_directories(${MACFUSE_DIRECTORY}) +endif() + INSTALL(PROGRAMS mount.unionfs DESTINATION sbin) add_subdirectory(src) |