diff --git a/meson.build b/meson.build index 7bf798674c..253994931e 100644 --- a/meson.build +++ b/meson.build @@ -584,7 +584,10 @@ endif ############################################################### ldapopt = get_option('ldap') -if host_system == 'windows' +if ldapopt.disabled() + ldap = not_found_dep + ldap_r = not_found_dep +elif host_system == 'windows' ldap = cc.find_library('wldap32', required: ldapopt) ldap_r = ldap else