Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 0ae5db2

Browse files
committed
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 f4c7c41 commit 0ae5db2

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)