[evolution] Extend error messages in FindLDAP.cmake



commit ef01d1fbfd02678b7fb142ecea90fd533ee0637d
Author: Milan Crha <mcrha redhat com>
Date:   Mon Oct 10 18:01:15 2016 +0200

    Extend error messages in FindLDAP.cmake

 cmake/modules/FindLDAP.cmake |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/cmake/modules/FindLDAP.cmake b/cmake/modules/FindLDAP.cmake
index bc3bf86..6dde4b8 100644
--- a/cmake/modules/FindLDAP.cmake
+++ b/cmake/modules/FindLDAP.cmake
@@ -80,7 +80,7 @@ if(WITH_OPENLDAP)
                                        #endif
                                        return 0; }" openldap_2_x)
        if(NOT openldap_2_x)
-               message(FATAL_ERROR "At least 2.0 OpenLDAP version required")
+               message(FATAL_ERROR "At least 2.0 OpenLDAP version required; either use -DWITH_OPENLDAP=OFF 
argument to cmake command to disable LDAP support, or install OpenLDAP")
        endif(NOT openldap_2_x)
 else(WITH_OPENLDAP)
        CHECK_C_SOURCE_COMPILES("#include \"ldap.h\"
@@ -90,7 +90,7 @@ else(WITH_OPENLDAP)
                                        #endif
                                        return 0; }" sunldap_2_x)
        if(NOT sunldap_2_x)
-               message(FATAL_ERROR "At least 2.0 SunLDAP version required")
+               message(FATAL_ERROR "At least 2.0 SunLDAP version required; either use -DWITH_SUNLDAP=OFF 
argument to cmake command to disable LDAP support, or install SunLDAP")
        endif(NOT sunldap_2_x)
 endif(WITH_OPENLDAP)
 
@@ -121,9 +121,9 @@ if(libldap_provides_ldap_open)
        endif(WITH_STATIC_LDAP)
 else(libldap_provides_ldap_open)
        if(WITH_OPENLDAP)
-               message(FATAL_ERROR "Could not find OpenLDAP libraries")
+               message(FATAL_ERROR "Could not find OpenLDAP libraries; either use -DWITH_OPENLDAP=OFF 
argument to cmake command to disable LDAP support, or install OpenLDAP")
        else(WITH_OPENLDAP)
-               message(FATAL_ERROR "Could not find SunLDAP libraries")
+               message(FATAL_ERROR "Could not find SunLDAP libraries; either use -DWITH_SUNLDAP=OFF argument 
to cmake command to disable LDAP support, or install SunLDAP")
        endif(WITH_OPENLDAP)
 endif(libldap_provides_ldap_open)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]