diff options
Diffstat (limited to 'cmake/modules/FindKERBEROS.cmake')
-rw-r--r-- | cmake/modules/FindKERBEROS.cmake | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cmake/modules/FindKERBEROS.cmake b/cmake/modules/FindKERBEROS.cmake index 1c255350ff..4cd312c7f4 100644 --- a/cmake/modules/FindKERBEROS.cmake +++ b/cmake/modules/FindKERBEROS.cmake @@ -14,10 +14,13 @@ IF (KERBEROS_INCLUDE_DIRS) SET(KERBEROS_FIND_QUIETLY TRUE) ENDIF (KERBEROS_INCLUDE_DIRS) -FIND_PATH(KERBEROS_INCLUDE_DIR krb5.h) +INCLUDE(FindWSWinLibs) +FindWSWinLibs("kfw-.*" "KERBOROS_HINTS") -SET(KERBEROS_NAMES krb5) -FIND_LIBRARY(KERBEROS_LIBRARY NAMES ${KERBEROS_NAMES} ) +FIND_PATH(KERBEROS_INCLUDE_DIR krb5.h HINTS "${KERBOROS_HINTS}/include" ) + +SET(KERBEROS_NAMES krb5 krb5_32) +FIND_LIBRARY(KERBEROS_LIBRARY NAMES ${KERBEROS_NAMES} HINTS "${KERBOROS_HINTS}/lib" ) # handle the QUIETLY and REQUIRED arguments and set KERBEROS_FOUND to TRUE if # all listed variables are TRUE |