summaryrefslogtreecommitdiffstats
path: root/FindGnuTLS.cmake
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-05-20 01:08:16 +0200
committerMatthias Schiffer <matthias@gamezock.de>2009-05-20 01:08:16 +0200
commit776377bb21ee1cfe0bcdbc000f7c6fa0be227226 (patch)
treea60e8bdd92678dece5fbb96e75535eba2b61b7da /FindGnuTLS.cmake
parentbadc0da3b74d99c90b7b28180d08cd6d08830254 (diff)
downloadmad-776377bb21ee1cfe0bcdbc000f7c6fa0be227226.tar
mad-776377bb21ee1cfe0bcdbc000f7c6fa0be227226.zip
Netzwerk-Code auf boost::asio umgestellt
Diffstat (limited to 'FindGnuTLS.cmake')
-rw-r--r--FindGnuTLS.cmake38
1 files changed, 0 insertions, 38 deletions
diff --git a/FindGnuTLS.cmake b/FindGnuTLS.cmake
deleted file mode 100644
index 869444b..0000000
--- a/FindGnuTLS.cmake
+++ /dev/null
@@ -1,38 +0,0 @@
-INCLUDE( FindPkgConfig )
-
-IF ( GNUTLS_FIND_REQUIRED )
- SET( _pkgconfig_REQUIRED "REQUIRED" )
-ELSE( GNUTLS_FIND_REQUIRED )
- SET( _pkgconfig_REQUIRED "" )
-ENDIF ( GNUTLS_FIND_REQUIRED )
-
-IF ( GNUTLS_MIN_VERSION )
- PKG_SEARCH_MODULE( GNUTLS ${_pkgconfig_REQUIRED} gnutls>=${GNUTLS_MIN_VERSION} )
-ELSE ( GNUTLS_MIN_VERSION )
- PKG_SEARCH_MODULE( GNUTLS ${_pkgconfig_REQUIRED} gnutls )
-ENDIF ( GNUTLS_MIN_VERSION )
-
-
-IF( NOT GNUTLS_FOUND AND NOT PKG_CONFIG_FOUND )
- FIND_PATH( GNUTLS_INCLUDE_DIRS gnutls/gnutls.h )
- FIND_LIBRARY( GNUTLS_LIBRARIES gnutls)
-
- # Report results
- IF ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS )
- SET( GNUTLS_FOUND 1 )
- IF ( NOT GNUTLS_FIND_QUIETLY )
- MESSAGE( STATUS "Found gnutls: ${GNUTLS_LIBRARIES}" )
- ENDIF ( NOT GNUTLS_FIND_QUIETLY )
- ELSE ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS )
- IF ( GNUTLS_FIND_REQUIRED )
- MESSAGE( SEND_ERROR "Could NOT find gnutls" )
- ELSE ( GNUTLS_FIND_REQUIRED )
- IF ( NOT GNUTLS_FIND_QUIETLY )
- MESSAGE( STATUS "Could NOT find gnutls" )
- ENDIF ( NOT GNUTLS_FIND_QUIETLY )
- ENDIF ( GNUTLS_FIND_REQUIRED )
- ENDIF ( GNUTLS_LIBRARIES AND GNUTLS_INCLUDE_DIRS )
-ENDIF( NOT GNUTLS_FOUND AND NOT PKG_CONFIG_FOUND )
-
-MARK_AS_ADVANCED( GNUTLS_LIBRARIES GNUTLS_INCLUDE_DIRS )
-