Skip to content

Commit

Permalink
Install openldap
Browse files Browse the repository at this point in the history
  • Loading branch information
fdr400 committed Jan 8, 2025
1 parent 42faf9b commit b907c8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/SetupPostgresqlDeps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ _userver_macos_set_default_dir(OPENSSL_ROOT_DIR "brew;--prefix;openssl")
# We need libldap to statically link with libpq
# There is no FindLdap.cmake and no package config files
# for ldap library, so need to search for it by hand.
find_library(LDAP_LIBRARY NAMES libldap.so libldap.dylib)
find_library(LDAP_LIBRARY NAMES libldap.so libldap.dylib libldap.framework)
if(NOT LDAP_LIBRARY)
message(FATAL_ERROR "Failed to find libldap.so.\n"
"The linux system ldap installs shared objects with very ugly names, "
"so please install `libldap2-dev` package. "
"For Mac OS X please install `openldap`.")
endif()
message(STATUS "Found ldap: ${LDAP_LIBRARY}")

find_package(PostgreSQLInternal REQUIRED)
find_package(GssApi REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions scripts/docs/en/deps/macos.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ mariadb
mongo-c-driver
nghttp2
ninja
openldap
openssl
postgresql@16
pugixml
Expand Down

0 comments on commit b907c8a

Please sign in to comment.