# LDAP Authentication (and other authentication backends).
####################################################################
-option(WITH_LDAP "Enable LDAP authentication support if present on system" ON)
+option(WITH_LDAP "Enable LDAP authentication support if present on system" ON)
# Setup CMake
#####################################################################
# Setup LDAP Authentication support.
#####################################################################
if(WITH_LDAP)
- find_package(Ldap)
- if(LDAP_FOUND)
- message(STATUS "Enabling LDAP authentication support")
- set(HAVE_LDAP true)
- else(LDAP_FOUND)
- message(STATUS "Disabling LDAP authentication support")
- endif(LDAP_FOUND)
+ find_package(Ldap)
+ if(LDAP_FOUND)
+ message(STATUS "Enabling LDAP authentication support")
+ set(HAVE_LDAP true)
+ if(HAVE_LDAP)
+ add_definitions(-DHAVE_LDAP)
+ endif(HAVE_LDAP)
+ else(LDAP_FOUND)
+ message(STATUS "Disabling LDAP authentication support")
+ endif(LDAP_FOUND)
else(WITH_LDAP)
- message(STATUS "Not enabling LDAP authentication support")
+ message(STATUS "Not enabling LDAP authentication support")
endif(WITH_LDAP)
# Setup KDE / KDE Frameworks