cmake: add LDAP Find module

Move LDAP detection to its own Find module.

It supports `pkg-config` and the standard detection method used for
other dependencies, with version detection.

In curl CI it fixes LDAP detection in the OpenBSD job.

Closes #15273
This commit is contained in:
Viktor Szakats 2024-10-11 23:40:37 +02:00
parent ae3ca135d1
commit 49f2a23d50
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
3 changed files with 126 additions and 46 deletions

View file

@ -36,6 +36,7 @@ CMAKE_DIST = \
CMake/FindBrotli.cmake \
CMake/FindCares.cmake \
CMake/FindGSS.cmake \
CMake/FindLDAP.cmake \
CMake/FindLibgsasl.cmake \
CMake/FindLibidn2.cmake \
CMake/FindLibpsl.cmake \