X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fcmake%2Fmodules%2FFindOpenLdap.cmake;fp=src%2Fceph%2Fcmake%2Fmodules%2FFindOpenLdap.cmake;h=35b711d6b331523839763702044e241577ff619b;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/cmake/modules/FindOpenLdap.cmake b/src/ceph/cmake/modules/FindOpenLdap.cmake new file mode 100644 index 0000000..35b711d --- /dev/null +++ b/src/ceph/cmake/modules/FindOpenLdap.cmake @@ -0,0 +1,22 @@ +# - 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)