X-Git-Url: https://git.rrq.au/?a=blobdiff_plain;f=CMakeLists.txt;h=bcefc8e59bde3ceabdb1a70826c4bb3a8c01363d;hb=2aaa49414e781633db18c263167f5ce27d9d1e22;hp=a17e2b355c3f756c70ecc07db62cf4d6641de444;hpb=7bbf49883780af4d17e264b6a0f03daa543f9077;p=rrq%2Ffuse_xattrs.git diff --git a/CMakeLists.txt b/CMakeLists.txt index a17e2b3..bcefc8e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.8 FATAL_ERROR) project(fuse_xattrs C) set(FUSE_XATTRS_VERSION_MAJOR 0) -set(FUSE_XATTRS_VERSION_MINOR 2) +set(FUSE_XATTRS_VERSION_MINOR 5) set(BINARY_SIDECAR_EXT \".xattr\") @@ -34,15 +34,16 @@ endif() include (CheckCSourceCompiles) check_c_source_compiles (" #include - #include + #include 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 add_definitions (-D_FILE_OFFSET_BITS=64) +add_definitions (-D HAVE_UTIMENSAT=1) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules/") @@ -68,10 +69,18 @@ set(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 (