[cmake] build mod_authn_gssapi if WITH_KRB5

personal/stbuehler/mod-csrf
Glenn Strauss 6 years ago
parent 06cb0c3024
commit ebbd639029
  1. 5
      src/CMakeLists.txt

@ -22,6 +22,7 @@ option(WITH_WEBDAV_PROPS "with property-support for mod_webdav [default: off]")
option(WITH_WEBDAV_LOCKS "locks in webdav [default: off]")
option(WITH_BZIP "with bzip2-support for mod_compress [default: off]")
option(WITH_ZLIB "with deflate-support for mod_compress [default: on]" ON)
option(WITH_KRB5 "with Kerberos5-support for the mod_auth [default: off]")
option(WITH_LDAP "with LDAP-support for the mod_auth [default: off]")
option(WITH_LUA "with lua 5.1 for mod_magnet [default: off]")
# option(WITH_VALGRIND "with internal support for valgrind [default: off]")
@ -556,7 +557,6 @@ add_and_install_library(mod_accesslog mod_accesslog.c)
add_and_install_library(mod_alias mod_alias.c)
add_and_install_library(mod_auth "mod_auth.c")
add_and_install_library(mod_authn_file "mod_authn_file.c")
add_and_install_library(mod_authn_gssapi "mod_authn_gssapi.c")
add_and_install_library(mod_authn_ldap "mod_authn_ldap.c")
add_and_install_library(mod_authn_mysql "mod_authn_mysql.c")
if(NOT WIN32)
@ -675,8 +675,9 @@ target_link_libraries(mod_authn_file ${L_MOD_AUTHN_FILE})
if(HAVE_KRB5)
set(L_MOD_AUTHN_GSSAPI ${L_MOD_AUTHN_GSSAPI} resolv krb5 gssapi_krb5)
add_and_install_library(mod_authn_gssapi "mod_authn_gssapi.c")
target_link_libraries(mod_authn_gssapi ${L_MOD_AUTHN_GSSAPI})
endif()
target_link_libraries(mod_authn_gssapi ${L_MOD_AUTHN_GSSAPI})
if(HAVE_LDAP_H)
set(L_MOD_AUTHN_LDAP ${L_MOD_AUTHN_LDAP} ldap lber)

Loading…
Cancel
Save