cmake: Rewrote FindGSSAPI.cmake.

This commit is contained in:
Andreas Schneider
2013-07-24 20:02:49 +02:00
parent 6a83f9a044
commit 5ba88f01e8
4 changed files with 322 additions and 73 deletions

View File

@@ -64,12 +64,17 @@ if (WITH_ZLIB)
)
endif (WITH_ZLIB)
if (WITH_GSSAPI AND GSSAPI_LIBS)
if (WITH_GSSAPI AND GSSAPI_FOUND)
set(LIBSSH_PRIVATE_INCLUDE_DIRS
${LIBSSH_PRIVATE_INCLUDE_DIRS}
${GSSAPI_INCLUDE_DIR}
)
set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES}
${GSSAPI_LIBS}
${GSSAPI_LIBRARIES}
)
endif (WITH_GSSAPI AND GSSAPI_LIBS)
endif (WITH_GSSAPI AND GSSAPI_FOUND)
set(LIBSSH_LINK_LIBRARIES
${LIBSSH_LINK_LIBRARIES}
@@ -180,12 +185,12 @@ if (WITH_ZLIB)
)
endif(WITH_ZLIB)
if (WITH_GSSAPI AND GSSAPI_LIBS)
if (WITH_GSSAPI AND GSSAPI_FOUND)
set(libssh_SRCS
${libssh_SRCS}
gssapi.c
)
endif (WITH_GSSAPI AND GSSAPI_LIBS)
endif (WITH_GSSAPI AND GSSAPI_FOUND)
include_directories(
${LIBSSH_PUBLIC_INCLUDE_DIRS}