aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindKERBEROS.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-09-23 21:45:55 +0000
committerJörg Mayer <jmayer@loplof.de>2013-09-23 21:45:55 +0000
commitd456079b7e928007d4130ffb4ab5ccf49c98481e (patch)
treedba40805065d07057c21b5b77dbb76ec1419bd05 /cmake/modules/FindKERBEROS.cmake
parentd74564d6cf9d5e5d5927b51d31220db1c51409e7 (diff)
Beginnings of win cmake support (not yet working), created by Graham Bloice,
some smaller changes by me. - README.cmake Document how to (one day) run on Windows - CMakeLists.txt Use MSVC compiler flags for MSVC instead of gcc flags - FindWSWinLibs.cmake New: Creates HINTS for finding includes and libraries inside the Wireshark support library installation. - FindXXX.cmake Make use of HINTS generated by FindWSWinLibs.cmake This has not really been tested on Windows as my installation seems to have automagically downloaded some fixes and is in an inconsistent state since. Will probably need to reinstall. svn path=/trunk/; revision=52194
Diffstat (limited to 'cmake/modules/FindKERBEROS.cmake')
-rw-r--r--cmake/modules/FindKERBEROS.cmake9
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