X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=cmake%2FFindLdap.cmake;fp=cmake%2FFindLdap.cmake;h=5532547888e4753263ea640fe290c22813539eae;hp=2f0c0dd27428dea21ecb8fa79bd2bc6066c93de9;hb=258d157a228d2b2b46b01d3b33ab932b9979436a;hpb=07473582d22eddd934ee52127cad2baa11943d59 diff --git a/cmake/FindLdap.cmake b/cmake/FindLdap.cmake index 2f0c0dd2..55325478 100644 --- a/cmake/FindLdap.cmake +++ b/cmake/FindLdap.cmake @@ -13,16 +13,17 @@ if(LDAP_INCLUDE_DIR AND LDAP_LIBRARIES) set(Ldap_FIND_QUIETLY TRUE) endif(LDAP_INCLUDE_DIR AND LDAP_LIBRARIES) -#if(UNIX) # Attempt to link against ldap.h regardless of platform! FIND_PATH(LDAP_INCLUDE_DIR ldap.h) FIND_LIBRARY(LDAP_LIBRARIES NAMES ldap) FIND_LIBRARY(LBER_LIBRARIES NAMES lber) -#else(UNIX) +# It'd be nice to link against winldap on Windows, unfortunately +# the interfaces are different. In theory a compatibility shim +# could be written; if someone ever gets around to doing that these +# lines should be uncommented and used on Windows. # FIND_PATH(LDAP_INCLUDE_DIR winldap.h) # FIND_LIBRARY(LDAP_LIBRARIES NAMES wldap32) -#endif(UNIX) if(LDAP_INCLUDE_DIR AND LDAP_LIBRARIES) set(LDAP_FOUND TRUE)