X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=2e743749f97d283f7db1dd8b052c640ed593f142;hp=42f2ab36672b1540e0e1baa1a960be099a2000b9;hb=bcaaebece13e123dc66dc32b59e13956b12f8b4c;hpb=61aac1868f15babb7086d8bc6bbcff530346f438 diff --git a/CMakeLists.txt b/CMakeLists.txt index 42f2ab36..2e743749 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -133,9 +133,10 @@ if (LINK_EXTRA) endif() -# LDAP Authentication (and other authentication backends). +# List of authenticators and the cmake flags to build them +# (currently that's just LDAP, but more can be added here). #################################################################### -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 ##################################################################### @@ -520,17 +521,18 @@ endif() # 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) -else(WITH_LDAP) - message(STATUS "Not enabling LDAP authentication support") -endif(WITH_LDAP) +if (WITH_LDAP) + find_package(Ldap) + if (LDAP_FOUND) + message(STATUS "Enabling LDAP authentication support") + set(HAVE_LDAP true) + add_definitions(-DHAVE_LDAP) + else() + message(STATUS "Disabling LDAP authentication support") + endif() +else() + message(STATUS "Not enabling LDAP authentication support") +endif() # Setup KDE / KDE Frameworks #####################################################################