Skip to content

Commit

Permalink
cmake: fix darwin build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed May 22, 2019
1 parent 180b862 commit b72869b
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions core/CMakeLists.txt
Expand Up @@ -485,9 +485,15 @@ set(build_stored "${build-stored}" )
set(have_plugins "${have_plugins}" )
set(have_afs "" )

if(${HAVE_SYS_ACL_H})
set(HAVE_ACL 1)
Message(STATUS "acl found, libs: ${ACL_LIBS}")
if(${acl})
if(NOT HAVE_WIN32 AND NOT HAVE_DARWIN_OS)
if(${HAVE_SYS_ACL_H})
set(HAVE_ACL 1)
Message(STATUS "acl found, libs: ${ACL_LIBS}")
else()
Message(FATAL_ERROR "build with acl requested, but lib not found")
endif()
endif()
endif()

if("${HAVE_SYS_XATTR_H}" OR "${HAVE_SYS_EXTATTR_H}")
Expand Down

0 comments on commit b72869b

Please sign in to comment.