diff options
author | Brian Kendall <brian@briankendall.net> | 2022-03-31 16:51:02 -0400 |
---|---|---|
committer | Radek Podgorny <radek@podgorny.cz> | 2022-07-02 18:36:54 +0200 |
commit | 406310e777308593bbc256e026b1093014a77f01 (patch) | |
tree | a4c848f34a8ab4afdb472d5c4480a936bdfaf4b3 /CMakeLists.txt | |
parent | fead5105e3bbbe57d18a8a0d1bb8e2c1b8637824 (diff) | |
download | unionfs-fuse-git-406310e777308593bbc256e026b1093014a77f01.tar.gz |
Fix fuse library not found in macOS
Diffstat (limited to 'CMakeLists.txt')
-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) |