Blame cmake/FindACL.cmake
|
Packit Service |
569379 |
# - Try to find ACL
|
|
Packit Service |
569379 |
# Once done, this will define
|
|
Packit Service |
569379 |
#
|
|
Packit Service |
569379 |
# ACL_FOUND - system has ACL
|
|
Packit Service |
569379 |
# ACL_INCLUDE_DIRS - the ACL include directories
|
|
Packit Service |
569379 |
# ACL_LIBRARIES - link these to use ACL
|
|
Packit Service |
569379 |
|
|
Packit Service |
569379 |
include(LibFindMacros)
|
|
Packit Service |
569379 |
|
|
Packit Service |
569379 |
# Use pkg-config to get hints about paths
|
|
Packit Service |
569379 |
libfind_pkg_check_modules(ACL_PKGCONF libacl)
|
|
Packit Service |
569379 |
|
|
Packit Service |
569379 |
# Include dir
|
|
Packit Service |
569379 |
find_path(ACL_INCLUDE_DIR
|
|
Packit Service |
569379 |
NAMES "acl/libacl.h" "sys/libacl.h"
|
|
Packit Service |
569379 |
PATHS ${ACL_PKGCONF_INCLUDE_DIRS}
|
|
Packit Service |
569379 |
)
|
|
Packit Service |
569379 |
|
|
Packit Service |
569379 |
# Finally the library itself
|
|
Packit Service |
569379 |
find_library(ACL_LIBRARY
|
|
Packit Service |
569379 |
NAMES acl
|
|
Packit Service |
569379 |
PATHS ${ACL_PKGCONF_LIBRARY_DIRS}
|
|
Packit Service |
569379 |
)
|
|
Packit Service |
569379 |
|
|
Packit Service |
569379 |
# Set the include dir variables and the libraries and let libfind_process do the rest.
|
|
Packit Service |
569379 |
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
|
|
Packit Service |
569379 |
set(ACL_PROCESS_INCLUDES ACL_INCLUDE_DIR)
|
|
Packit Service |
569379 |
set(ACL_PROCESS_LIBS ACL_LIBRARY)
|
|
Packit Service |
569379 |
libfind_process(ACL)
|