Warning, /frameworks/kdelibs4support/cmake/modules/FindACL.cmake is written in an unsupported language. File is not indexed.
0001 # - Try to find the ACL library 0002 # Once done this will define 0003 # 0004 # ACL_FOUND - system has the ACL library 0005 # ACL_LIBS - The libraries needed to use ACL 0006 0007 # Copyright (c) 2006, Pino Toscano, <toscano.pino@tiscali.it> 0008 # 0009 # Redistribution and use is allowed according to the terms of the BSD license. 0010 # For details see the accompanying COPYING-CMAKE-SCRIPTS file. 0011 0012 include(CheckIncludeFiles) 0013 0014 check_include_files(attr/libattr.h HAVE_ATTR_LIBATTR_H) 0015 check_include_files(sys/xattr.h HAVE_SYS_XATTR_H) 0016 check_include_files(sys/acl.h HAVE_SYS_ACL_H) 0017 check_include_files(acl/libacl.h HAVE_ACL_LIBACL_H) 0018 0019 if (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) 0020 set(ACL_HEADERS_FOUND TRUE) 0021 endif (HAVE_ATTR_LIBATTR_H AND HAVE_SYS_XATTR_H AND HAVE_SYS_ACL_H AND HAVE_ACL_LIBACL_H) 0022 0023 if (ACL_HEADERS_FOUND) 0024 find_library(ACL_LIBS NAMES acl ) 0025 0026 find_library(ATTR_LIBS NAMES attr ) 0027 endif (ACL_HEADERS_FOUND) 0028 0029 if (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) 0030 set(ACL_FOUND TRUE) 0031 set(ACL_LIBS ${ACL_LIBS} ${ATTR_LIBS}) 0032 message(STATUS "Found ACL support: ${ACL_LIBS}") 0033 endif (ACL_HEADERS_FOUND AND ACL_LIBS AND ATTR_LIBS) 0034 0035 mark_as_advanced(ACL_LIBS ATTR_LIBS) 0036