cmake: Make GSSAPI optional.

This commit is contained in:
Andreas Schneider
2013-07-13 15:46:23 +02:00
parent 9bbbccc0e7
commit 1663917f71
8 changed files with 38 additions and 16 deletions

View File

@@ -64,12 +64,12 @@ if (WITH_ZLIB)
)
endif (WITH_ZLIB)
if (GSSAPI_LIBS)
if (WITH_GSSAPI AND GSSAPI_LIBS)
set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES}
${GSSAPI_LIBS}
)
endif (GSSAPI_LIBS)
endif (WITH_GSSAPI AND GSSAPI_LIBS)
set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES}
@@ -102,7 +102,6 @@ set(libssh_SRCS
ecdh.c
error.c
getpass.c
gssapi.c
init.c
kex.c
known_hosts.c
@@ -181,6 +180,13 @@ if (WITH_ZLIB)
)
endif(WITH_ZLIB)
if (WITH_GSSAPI AND GSSAPI_LIBS)
set(libssh_SRCS
${libssh_SRCS}
gssapi.c
)
endif (WITH_GSSAPI AND GSSAPI_LIBS)
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}
${LIBSSH_PRIVATE_INCLUDE_DIRS}