diff options
author | Radek Podgorny <radek@podgorny.cz> | 2014-05-28 13:30:53 +0200 |
---|---|---|
committer | Radek Podgorny <radek@podgorny.cz> | 2014-05-28 13:30:53 +0200 |
commit | 1d9e2624cd6504372cbac043fdb6bf82c09c4c48 (patch) | |
tree | 5134a19461a524639d5676ab4e8fec28151decdd | |
parent | 0c13bbf72030e75d8262ec13f096629bb538a142 (diff) | |
download | unionfs-fuse-master.tar.gz |
-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) |