mirror of
https://github.com/m5stack/libsmb2.git
synced 2026-05-20 11:41:57 -07:00
31 lines
802 B
CMake
31 lines
802 B
CMake
#.rst:
|
|
# FindGSSAPI
|
|
# -------
|
|
# Finds the gssapi library
|
|
#
|
|
# This will will define the following variables::
|
|
#
|
|
# GSSAPI_FOUND - system has gssapi
|
|
# GSSAPI_INCLUDE_DIRS - the gssapi include directory
|
|
# GSSAPI_LIBRARIES - the gssapi libraries
|
|
|
|
find_library(GSSAPI_LIBRARY NAMES gssapi_krb5)
|
|
|
|
find_path(GSSAPI_INCLUDE_DIR NAMES gssapi.h
|
|
gssapi/gssapi.h)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(GSSAPI
|
|
REQUIRED_VARS GSSAPI_LIBRARY GSSAPI_INCLUDE_DIR)
|
|
|
|
if (GSSAPI_LIBRARY AND GSSAPI_INCLUDE_DIRS)
|
|
set(GSSAPI_FOUND TRUE)
|
|
endif ()
|
|
|
|
if(GSSAPI_FOUND)
|
|
set(GSSAPI_LIBRARIES ${GSSAPI_LIBRARY})
|
|
set(GSSAPI_INCLUDE_DIRS ${GSSAPI_INCLUDE_DIR})
|
|
endif()
|
|
|
|
mark_as_advanced(GSSAPI_LIBRARIES GSSAPI_INCLUDE_DIRS)
|