Skip to content

Commit

Permalink
Pass USE_FUSE2 define to apfs-fuse build under macOS
Browse files Browse the repository at this point in the history
As the OSXFUSE version of FUSE is v2, add the same call to
`target_compile_definitions` in the check for `APPLE` as for the
check against `USE_FUSE2` when `APPLE` isn't defined
  • Loading branch information
msbit committed Oct 9, 2020
1 parent ee71aa5 commit b2ea1e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ if (APPLE)
target_include_directories(apfs-fuse PRIVATE /usr/local/include/osxfuse/)
# link_directories(/usr/local/lib/)
target_link_libraries(apfs-fuse apfs /usr/local/lib/libosxfuse.dylib)
target_compile_definitions(apfs-fuse PRIVATE USE_FUSE2)
else()
if (USE_FUSE3)
target_link_libraries(apfs-fuse apfs fuse3)
Expand Down

0 comments on commit b2ea1e7

Please sign in to comment.