Changeset 802:6dde862ba119 in freeDiameter for cmake
- Timestamp:
- Aug 22, 2012, 7:16:25 AM (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cmake/Modules/FindGnuTLS.cmake
r801 r802 7 7 # GNUTLS_VERSION_210 - true if GnuTLS version is >= 2.10.0 (does not require additional separate gcrypt initialization) 8 8 # GNUTLS_VERSION_300 - true if GnuTLS version is >= 3.00.0 (x509 verification functions changed) 9 # GNUTLS_VERSION_310 - true if GnuTLS version is >= 3.01.0 (stabilization branch with new APIs) 9 10 10 11 if (GNUTLS_INCLUDE_DIR AND GNUTLS_LIBRARIES) … … 44 45 IF( NOT( "${GNUTLS_VERSION_TEST_FOR}" STREQUAL "${GNUTLS_LIBRARY}" )) 45 46 INCLUDE (CheckLibraryExists) 46 MESSAGE(STATUS " Rechecking GNUTLS_VERSION_210 and GNUTLS_VERSION_300")47 MESSAGE(STATUS "Checking GNUTLS version") 47 48 UNSET(GNUTLS_VERSION_210) 48 49 UNSET(GNUTLS_VERSION_210 CACHE) 49 50 UNSET(GNUTLS_VERSION_300) 50 51 UNSET(GNUTLS_VERSION_300 CACHE) 52 UNSET(GNUTLS_VERSION_310) 53 UNSET(GNUTLS_VERSION_310 CACHE) 51 54 GET_FILENAME_COMPONENT(GNUTLS_PATH ${GNUTLS_LIBRARY} PATH) 52 55 CHECK_LIBRARY_EXISTS(gnutls gnutls_hash ${GNUTLS_PATH} GNUTLS_VERSION_210) 53 56 CHECK_LIBRARY_EXISTS(gnutls gnutls_x509_trust_list_verify_crt ${GNUTLS_PATH} GNUTLS_VERSION_300) 57 CHECK_LIBRARY_EXISTS(gnutls gnutls_handshake_set_timeout ${GNUTLS_PATH} GNUTLS_VERSION_310) 54 58 SET( GNUTLS_VERSION_TEST_FOR ${GNUTLS_LIBRARY} CACHE INTERNAL "Version the test was made against" ) 55 59 ENDIF (NOT( "${GNUTLS_VERSION_TEST_FOR}" STREQUAL "${GNUTLS_LIBRARY}" ))
Note: See TracChangeset
for help on using the changeset viewer.