Navigation


Changeset 802:6dde862ba119 in freeDiameter for cmake


Ignore:
Timestamp:
Aug 22, 2012, 7:16:25 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Also detect GNUTLS version 3.1.x

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cmake/Modules/FindGnuTLS.cmake

    r801 r802  
    77#  GNUTLS_VERSION_210 - true if GnuTLS version is >= 2.10.0 (does not require additional separate gcrypt initialization)
    88#  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)
    910
    1011if (GNUTLS_INCLUDE_DIR AND GNUTLS_LIBRARIES)
     
    4445  IF( NOT( "${GNUTLS_VERSION_TEST_FOR}" STREQUAL "${GNUTLS_LIBRARY}" ))
    4546    INCLUDE (CheckLibraryExists)
    46     MESSAGE(STATUS "Rechecking GNUTLS_VERSION_210 and GNUTLS_VERSION_300")
     47    MESSAGE(STATUS "Checking GNUTLS version")
    4748    UNSET(GNUTLS_VERSION_210)
    4849    UNSET(GNUTLS_VERSION_210 CACHE)
    4950    UNSET(GNUTLS_VERSION_300)
    5051    UNSET(GNUTLS_VERSION_300 CACHE)
     52    UNSET(GNUTLS_VERSION_310)
     53    UNSET(GNUTLS_VERSION_310 CACHE)
    5154    GET_FILENAME_COMPONENT(GNUTLS_PATH ${GNUTLS_LIBRARY} PATH)
    5255    CHECK_LIBRARY_EXISTS(gnutls gnutls_hash ${GNUTLS_PATH} GNUTLS_VERSION_210)
    5356    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)
    5458    SET( GNUTLS_VERSION_TEST_FOR ${GNUTLS_LIBRARY} CACHE INTERNAL "Version the test was made against" )
    5559  ENDIF (NOT( "${GNUTLS_VERSION_TEST_FOR}" STREQUAL "${GNUTLS_LIBRARY}" ))
Note: See TracChangeset for help on using the changeset viewer.