From b2ea1e7322c65050183bd384fb941ca6b62eda9f Mon Sep 17 00:00:00 2001 From: Tom Sullivan Date: Fri, 9 Oct 2020 21:46:08 +1100 Subject: [PATCH] Pass USE_FUSE2 define to apfs-fuse build under macOS 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 --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ad571e..83d31bc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)