]> git.proxmox.com Git - ceph.git/blame - ceph/cmake/modules/FindOpenLdap.cmake
import 15.2.9
[ceph.git] / ceph / cmake / modules / FindOpenLdap.cmake
CommitLineData
7c673cae
FG
1# - Find OpenLDAP C Libraries
2#
3# OPENLDAP_FOUND - True if found.
4# OPENLDAP_INCLUDE_DIR - Path to the openldap include directory
5# OPENLDAP_LIBRARIES - Paths to the ldap and lber libraries
6
7find_path(OPENLDAP_INCLUDE_DIR ldap.h PATHS
8 /usr/include
9 /opt/local/include
10 /usr/local/include)
11
12find_library(LDAP_LIBRARY ldap)
13find_library(LBER_LIBRARY lber)
14
15include(FindPackageHandleStandardArgs)
16find_package_handle_standard_args(OpenLdap DEFAULT_MSG
17 OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
18
19set(OPENLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY})
20
21mark_as_advanced(
22 OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)