Skip to content

Commit

Permalink
Merge pull request #155 from bareos/dev/arogge/master/acl-buildflag
Browse files Browse the repository at this point in the history
cmake: reasonable error for missing acl library
  • Loading branch information
pstorz committed Mar 8, 2019
2 parents 808cdb6 + 0ba3f41 commit 24b4360
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions core/CMakeLists.txt
Expand Up @@ -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}")
Expand Down

0 comments on commit 24b4360

Please sign in to comment.