diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/CMakeLists.txt | 6 |
2 files changed, 9 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b3d2f87..b5b17c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,6 +15,10 @@ SET(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") SET(CMAKE_C_FLAGS_RELEASE "-O2") SET(CMAKE_C_FLAGS_DEBUG "-O0 -g -DDEBUG") +if (UNIX AND APPLE) + include_directories("/usr/local/include/osxfuse/fuse") +endif() + add_definitions(-D_FILE_OFFSET_BITS=64 -DFUSE_USE_VERSION=26) option(WITH_XATTR "Enable support for extended attributes" OFF) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d58d4f4..a6511c7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -3,6 +3,10 @@ set(UNIONFS_SRCS unionfs.c stats.c opts.c debug.c findbranch.c readdir.c general.c unlink.c cow.c cow_utils.c string.c rmdir.c usyslog.c) add_executable(unionfs ${UNIONFS_SRCS} ${HASHTABLE_SRCS}) -target_link_libraries(unionfs fuse pthread rt) +target_link_libraries(unionfs fuse pthread) + +if (UNIX AND NOT APPLE) + target_link_libraries(rt) +endif() INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/unionfs DESTINATION bin) |