sapling/CMake/FindSELinux.cmake
Adam Simpkins 4bc8682391 update license headers in CMake files
Summary:
Update the copyright & license headers in CMake files to reflect the
relicensing to GPLv2

Reviewed By: wez

Differential Revision: D15487079

fbshipit-source-id: 715e559464c19a0070d6e55a095b3fc7d61ad2f8
2019-06-19 17:02:46 -07:00

26 lines
647 B
CMake

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This software may be used and distributed according to the terms of the
# GNU General Public License version 2.
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
)