diff --git a/cmake/find/ldap.cmake b/cmake/find/ldap.cmake index 3f7871617d4..369c1e42e8d 100644 --- a/cmake/find/ldap.cmake +++ b/cmake/find/ldap.cmake @@ -1,3 +1,7 @@ +if (UNBUNDLED AND USE_STATIC_LIBRARIES) + set (ENABLE_LDAP OFF CACHE INTERNAL "") +endif() + option (ENABLE_LDAP "Enable LDAP" ${ENABLE_LIBRARIES}) if (NOT ENABLE_LDAP)