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

@@ -67,10 +67,9 @@ endif(WITH_GCRYPT)
set(CMAKE_THREAD_PREFER_PTHREADS ON)
find_package(Threads)
find_package(GSSAPI)
if (GSSAPI_LIBS)
set (WITH_GSSAPI "ON")
endif (GSSAPI_LIBS)
if (WITH_GSSAPI)
find_package(GSSAPI REQUIRED)
endif (WITH_GSSAPI)
# config.h checks
include(ConfigureChecks.cmake)