MSVC: Don't build ldap_password_func if not building with ldap
authorAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Mar 2023 22:30:22 +0000 (18:30 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Wed, 15 Mar 2023 22:30:22 +0000 (18:30 -0400)
Blind attempt to fix issue with 419a8dd814 found on drongo.

src/tools/msvc/Mkvcbuild.pm

index f1c9ddf4a025e1381b092154f589706e4134f0a4..e3ffc653e538c7ae367a7f37a4ead4321e3de7b7 100644 (file)
@@ -475,6 +475,11 @@ sub mkvcbuild
                  'pgcrypto';
        }
 
+       if (!$solution->{options}->{ldap})
+       {
+               push @contrib_excludes, 'ldap_password_func';
+       }
+
        if (!$solution->{options}->{uuid})
        {
                push @contrib_excludes, 'uuid-ossp';