projects
/
rrq
/
fuse_xattrs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Namespaces are disabled by default (can be enabled at runtime with a flag). OSX compa...
[rrq/fuse_xattrs.git]
/
CMakeLists.txt
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index c61c483368afe83aa47486aac76385bfe67eea26..b7403a4d63fe796cb3d4ac4fb66d6a6b8268e963 100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-34,11
+34,11
@@
endif()
include (CheckCSourceCompiles)
check_c_source_compiles ("
#include <sys/types.h>
include (CheckCSourceCompiles)
check_c_source_compiles ("
#include <sys/types.h>
- #include <
attr
/xattr.h>
+ #include <
sys
/xattr.h>
int main() { return 1; }
int main() { return 1; }
- " HAVE_
ATTR
_XATTR_H)
-if(NOT HAVE_
ATTR
_XATTR_H)
- message(FATAL_ERROR "
attr
/xattr.h not found")
+ " HAVE_
SYS
_XATTR_H)
+if(NOT HAVE_
SYS
_XATTR_H)
+ message(FATAL_ERROR "
sys
/xattr.h not found")
endif()
# set required definitions
endif()
# set required definitions
@@
-68,10
+68,18
@@
set(SOURCE_FILES
add_executable(fuse_xattrs ${SOURCE_FILES})
add_executable(fuse_xattrs ${SOURCE_FILES})
-target_link_libraries (
- fuse_xattrs
- fuse
-)
+if(APPLE)
+ target_link_libraries (
+ fuse_xattrs
+ osxfuse
+ )
+else()
+ target_link_libraries (
+ fuse_xattrs
+ fuse
+ )
+endif()
+
install (TARGETS fuse_xattrs DESTINATION bin)
install (
install (TARGETS fuse_xattrs DESTINATION bin)
install (