summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRadek Podgorny <radek@podgorny.cz>2014-05-28 13:30:53 +0200
committerRadek Podgorny <radek@podgorny.cz>2014-05-28 13:30:53 +0200
commit1d9e2624cd6504372cbac043fdb6bf82c09c4c48 (patch)
tree5134a19461a524639d5676ab4e8fec28151decdd /src
parent0c13bbf72030e75d8262ec13f096629bb538a142 (diff)
downloadunionfs-fuse-master.tar.gz
add liulk's patch for mac os xHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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)