Skip to content
Permalink
Browse files

cmake: reasonable error for missing acl library

Ensure that there is a reasonable error when the acl library
cannot be found but was requested.
  • Loading branch information...
arogge committed Mar 7, 2019
1 parent 808cdb6 commit 0ba3f41b5ccb353bf874abf28d27c3321ee72e70
Showing with 7 additions and 3 deletions.
  1. +7 −3 core/CMakeLists.txt
@@ -485,9 +485,13 @@ set(build_stored "${build-stored}" )
set(have_plugins "${have_plugins}" )
set(have_afs "" )

if(${acl} AND ${HAVE_SYS_ACL_H})
set(HAVE_ACL 1)
Message(STATUS "acl found, libs: ${ACL_LIBS}")
if(${acl})
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()

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

0 comments on commit 0ba3f41

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.