Skip to content

Commit b06227b

Browse files
anarazelpull[bot]
authored andcommitted
meson: respect -Dldap=disabled
I noticed during some manual testing that -Dldap=disabled (or --auto-features=disabled) doesn't disable ldap if available - that's obviously wrong.
1 parent eb3b8bc commit b06227b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

meson.build

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -584,7 +584,10 @@ endif
584584
###############################################################
585585

586586
ldapopt = get_option('ldap')
587-
if host_system == 'windows'
587+
if ldapopt.disabled()
588+
ldap = not_found_dep
589+
ldap_r = not_found_dep
590+
elif host_system == 'windows'
588591
ldap = cc.find_library('wldap32', required: ldapopt)
589592
ldap_r = ldap
590593
else

0 commit comments

Comments
 (0)