CMake: include CheckFunctionExists in FindKERBEROS.cmake

This commit is contained in:
Pascal Quantin 2021-08-10 17:46:40 +02:00
parent 3c5168c874
commit 1b61474d9d
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ endif()
# Try to detect the installed Kerberos vendor, assume MIT if it was not Heimdal.
if(KERBEROS_FOUND)
include(CheckSymbolExists)
include(CheckFunctionExists)
set(CMAKE_REQUIRED_INCLUDES ${KERBEROS_INCLUDE_DIRS})
set(CMAKE_REQUIRED_LIBRARIES ${KERBEROS_LIBRARIES})
#see also HAVE_HEIMDAL_KERBEROS in cmakeconfig.h.in