2019-06-20 02:58:25 +03:00
|
|
|
# Copyright (c) Facebook, Inc. and its affiliates.
|
2019-03-08 06:29:53 +03:00
|
|
|
#
|
2019-06-20 02:58:25 +03:00
|
|
|
# This software may be used and distributed according to the terms of the
|
|
|
|
# GNU General Public License version 2.
|
|
|
|
|
2018-05-01 00:28:44 +03:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_path(SELINUX_INCLUDE_DIR NAMES selinux/selinux.h)
|
|
|
|
find_library(SEPOL_LIBRARY NAMES sepol)
|
|
|
|
find_library(SELINUX_LIBRARY NAMES selinux)
|
|
|
|
list(APPEND SELINUX_LIBRARIES ${SELINUX_LIBRARY} ${SEPOL_LIBRARY})
|
|
|
|
find_package_handle_standard_args(
|
|
|
|
SELINUX
|
|
|
|
DEFAULT_MSG
|
|
|
|
SELINUX_INCLUDE_DIR
|
|
|
|
SELINUX_LIBRARY
|
|
|
|
SEPOL_LIBRARY
|
|
|
|
SELINUX_LIBRARIES
|
|
|
|
)
|
|
|
|
mark_as_advanced(
|
|
|
|
SELINUX_INCLUDE_DIR
|
|
|
|
SELINUX_LIBRARY
|
|
|
|
SEPOL_LIBRARY
|
|
|
|
SELINUX_LIBRARIES
|
|
|
|
)
|