From ebbd639029e2c90e58187d525000c759615daff1 Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 29 Sep 2016 20:32:19 -0400 Subject: [PATCH] [cmake] build mod_authn_gssapi if WITH_KRB5 --- src/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 95e86658..d788112e 100644 --- a/src/CMakeLists.txt +++ b/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) -- 2.11.4.GIT