aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2013-07-24 20:02:49 +0200
committerAndreas Schneider <asn@cryptomilk.org>2013-07-24 20:48:14 +0200
commit5ba88f01e8a610bfc0301763ff889415cbc9ab09 (patch)
treebacb78d153872d5444110a739e44d9cdc7add24f /src
parent6a83f9a044379057c5260de2c421abce5ef873a8 (diff)
downloadlibssh-5ba88f01e8a610bfc0301763ff889415cbc9ab09.tar.gz
libssh-5ba88f01e8a610bfc0301763ff889415cbc9ab09.tar.xz
libssh-5ba88f01e8a610bfc0301763ff889415cbc9ab09.zip
cmake: Rewrote FindGSSAPI.cmake.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d4949c3a..06b239fa 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -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}