mirror of
https://github.com/ceph/ceph
synced 2024-12-15 07:56:12 +00:00
e21d98aed4
* use find_package_handle_standard_args() and remove unused bits. * rename OPENLDAP_LIBS to OPENLDAP_LIBRARIES, to be consistent with find_package() modules. Signed-off-by: Kefu Chai <kchai@redhat.com>
23 lines
629 B
CMake
23 lines
629 B
CMake
# - Find OpenLDAP C Libraries
|
|
#
|
|
# OPENLDAP_FOUND - True if found.
|
|
# OPENLDAP_INCLUDE_DIR - Path to the openldap include directory
|
|
# OPENLDAP_LIBRARIES - Paths to the ldap and lber libraries
|
|
|
|
find_path(OPENLDAP_INCLUDE_DIR ldap.h PATHS
|
|
/usr/include
|
|
/opt/local/include
|
|
/usr/local/include)
|
|
|
|
find_library(LDAP_LIBRARY ldap)
|
|
find_library(LBER_LIBRARY lber)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(OpenLdap DEFAULT_MSG
|
|
OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
|
|
|
|
set(OPENLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY})
|
|
|
|
mark_as_advanced(
|
|
OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
|