eds-I#99 - Fails to build against git master of OpenLDAP (vendor version check)
Related to https://gitlab.gnome.org/GNOME/evolution-data-server/issues/99
This commit is contained in:

committed by
Milan Crha

parent
1c7368c9cc
commit
4569f31042
@ -86,7 +86,8 @@ set(CMAKE_REQUIRED_LIBRARIES "${LDAP_LIBS}")
|
||||
if(WITH_OPENLDAP)
|
||||
CHECK_C_SOURCE_COMPILES("#include \"ldap.h\"
|
||||
int main(void) {
|
||||
#if !defined(LDAP_VENDOR_VERSION) || LDAP_VENDOR_VERSION < 20000
|
||||
/* LDAP_VENDOR_VERSION is 0 if OpenLDAP is built from git/master */
|
||||
#if !defined(LDAP_VENDOR_VERSION) || (LDAP_VENDOR_VERSION != 0 && LDAP_VENDOR_VERSION < 20000)
|
||||
#error OpenLDAP version not at least 2.0
|
||||
#endif
|
||||
return 0; }" openldap_2_x)
|
||||
|
Reference in New Issue
Block a user