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:
Дилян Палаузов
2019-04-12 12:37:39 +02:00
committed by Milan Crha
parent 1c7368c9cc
commit 4569f31042

View File

@ -86,7 +86,8 @@ set(CMAKE_REQUIRED_LIBRARIES "${LDAP_LIBS}")
if(WITH_OPENLDAP) if(WITH_OPENLDAP)
CHECK_C_SOURCE_COMPILES("#include \"ldap.h\" CHECK_C_SOURCE_COMPILES("#include \"ldap.h\"
int main(void) { 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 #error OpenLDAP version not at least 2.0
#endif #endif
return 0; }" openldap_2_x) return 0; }" openldap_2_x)